Did you check the ES6 draft grammar{1]?  The answer to that should be fairly 
obvious there and if it isn't it would be good to know so we can try to make it 
clearer in the spec.

[1]: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-patterns 

Allen

On Nov 22, 2013, at 9:25 AM, Mathias Bynens wrote:

> One more related question: are these three regular expression literals 
> equivalent?
> 
> 1. `/[💩-💫]/u`: raw astral symbols
> 2. `/[\u{1F4A9}-\u{1F4AB}]/u`: astral symbols represented using Unicode code 
> point escape sequences
> 3. `/[\uD83D\uDCA9-\uD83D\uDCAB]/u`: astral symbols represented as a 
> surrogate pair
> 
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
> 

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to