Is \u006eew a valid Identifier?

Eric Suen eric.suen.tech at gmail.com
Sat Nov 7 14:50:45 UTC 2015


"The ReservedWord definitions are specified as literal sequences of
specific SourceCharacter elements. A code point in a ReservedWord
cannot be expressed by a \ UnicodeEscapeSequence." - what does it
mean?

The following code is valid in Chrome, but invalid in firefox and IE.

var \u006eew = 1; // \u006e = 'n'

and valid in Babel/Traceur, invalid in typescript/esprima...

-- 
------------------------------------------------
Spket IDE - Development Tool for RIA.

http://www.spket.com


More information about the es-discuss mailing list