RESOLVED DUPLICATE of bug 208998 167940
Unable to use literal astral-plane unicode character in identifier in JavaScript
https://bugs.webkit.org/show_bug.cgi?id=167940
Summary Unable to use literal astral-plane unicode character in identifier in JavaScript
Claude Pache
Reported 2017-02-07 08:42:37 PST
Type: var 𐋀; where the character before the semi-colon is U+102C0 (CARIAN LETTER G). Equivalently, try: eval("var \u{102C0};"); // (note that the escape sequence is expanded when evaluating the string) I get the error: SyntaxError: Invalid character '\u55296' I expect: no error (because U+102C0 is a letter). Note that the following code works as expected (no error): var \u{102C0};
Attachments
Claude Pache
Comment 1 2017-02-07 09:58:33 PST
Maybe related: Bug 121541
Alexey Proskuryakov
Comment 2 2017-02-08 17:37:00 PST
Seems very basic, but I can't remember this come up before. Very surprising.
Alexey Shvayka
Comment 3 2020-03-23 10:19:48 PDT
(In reply to Claude Pache from comment #0) > I expect: no error (because U+102C0 is a letter). As of https://trac.webkit.org/changeset/258531, the test case works as expected. *** This bug has been marked as a duplicate of bug 208998 ***
Note You need to log in before you can comment on or make changes to this bug.