Support future regular expression flags in harmony branch

https://code.google.com/p/esprima/issues/detail?id=557