[Webkit-unassigned] [Bug 78908] New: `SyntaxError: Unexpected token ILLEGAL` when using a valid JavaScript identifiers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 17 09:12:24 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=78908

           Summary: `SyntaxError: Unexpected token ILLEGAL` when using a
                    valid JavaScript identifiers
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mathias at qiwi.be


According to http://es5.github.com/x7.html#x7.6 (spec), http://mathiasbynens.be/notes/javascript-identifiers (summary), and http://mothereff.in/js-variables#a%5Cu200d (validator), `a\u200d` is a valid JavaScript identifier. 

However, JavaScriptCore doesn’t seem to support it:

    var a\u200d; // throws SyntaxError: Unexpected token ILLEGAL

This is a spec violation.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list