[Webkit-unassigned] [Bug 16695] New: JSC allows non-identifier codepoints in identifiers (Acid3 bug)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 1 01:43:33 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16695

           Summary: JSC allows non-identifier codepoints in identifiers
                    (Acid3 bug)
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric at webkit.org


JSC allows non-identifier codepoints in identifiers (Acid3 bug)

We don't throw a parse error exception here like we should:

    function () {
      // test 85: ES3 section 7.3 (unicode escapes can't be used to put
non-identifier characters into identifiers)
      // and there's no other place for them in the syntax (other than strings,
of course)
      var ok = false;
      try {
        eval("var test = { };\ntest.i= 0;\ntest.i\\u002b= 1;\ntest.i;\n");
      } catch (e) {
        ok = true;
      }
      assert(ok, "\\u002b was not considered a parse error in script");
      return 6;
    },


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



More information about the webkit-unassigned mailing list