[Webkit-unassigned] [Bug 197603] New: [JSC] Invalid AssignmentTargetType should be an early error.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 5 22:09:25 PDT 2019


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

            Bug ID: 197603
           Summary: [JSC] Invalid AssignmentTargetType should be an early
                    error.
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ross.kirsling at sony.com

Expressions like 0++, ++0, 0 = 0, and 0 += 0 are all specified as early errors, while JSC handles them as late errors:
https://tc39.github.io/ecma262/#sec-update-expressions-static-semantics-early-errors
https://tc39.github.io/ecma262/#sec-assignment-operators-static-semantics-early-errors

In particular, they're all early ReferenceErrors, a notion that JSC doesn't currently have; however, as I noted in bug 177218 comment 2, I am in the midst of proposing that we drop this notion and let all early errors be SyntaxErrors:
https://github.com/tc39/ecma262/pull/1527

With the hope that the above PR will meet with consensus in one month's time, I'd like to go ahead and turn these into early SyntaxErrors.
Then if all goes well, we can simply do a Test262 import after the spec update.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190506/5975bcd7/attachment.html>


More information about the webkit-unassigned mailing list