Norbert Lindenberg (2013-09-05T17:37:12.000Z)
domenic at domenicdenicola.com (2013-09-08T01:12:14.446Z)
On Sep 5, 2013, at 1:06 , Mathias Bynens <mathias at qiwi.be> wrote: > Tools like http://mothereff.in/js-escapes. I see nothing on that page about identifiers. > Both, since `"𠮷野家" === "\u{20BB7}野\u5BB6"`. That string is also equal to `"\uD842\uDFB7\u91CE\u5BB6"` although it hasn’t been decided if that should be a valid identifier too (since it uses the surrogate code points explicitly): https://bugs.ecmascript.org/show_bug.cgi?id=469. That complicates things. The question is about the purpose of the function: Should isIdentifier just help with character classification, or with parsing and unescaping as well? Without real use cases, we can't decide. Note that String methods in general don't know anything about Unicode escapes - those are handled by the ECMAScript or JSON parsers.