On Thu, Nov 21, 2013 at 2:41 PM, Mathias Bynens <[email protected]> wrote:
> I’d suggest allowing `\u{xxxxxx}`-style escape sequences everywhere, and
> simply changing the behavior of the resulting regular expression depending
> on the `u` flag. There’s no good reason to disallow e.g. `/\u{20}/` or even
> `/\u{1F4A9}/`.
>
That would unfortunately not be backwards compatible since /\u{123}/ is a
valid RegExp in ES5.1.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss