Status: Assigned
Owner: [email protected]
CC: [email protected],  [email protected]
Labels: Type-Bug Priority-Medium Harmony

New issue 3617 by [email protected]: Supplementary characters are allowed as identifier names in ES6
https://code.google.com/p/v8/issues/detail?id=3617

ES6 allows supplementary characters (i.e. characters with code point > 0xFFFF)
in identifiers, while ES5 doesn't. See
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-names-and-keywords,
and note how `IdentifierStart` refers to `UnicodeIDStart` which is defined as
'any Unicode code point with the Unicode property "ID_Start" or
"Other_ID_Start"' -- this doesn't exclude supplementary code points. But ES5 did:
https://bugs.ecmascript.org/show_bug.cgi?id=469#c0 The same thing goes for
`IdentifierPart` and `UnicodeIDContinue`.

To illustrate the difference in code: compare
https://gist.github.com/mathiasbynens/6334847#file-javascript-identifier-rege...
(ES5) with
https://gist.github.com/mathiasbynens/6334847#file-javascript-identifier-rege...
(ES6).

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to