[Webkit-unassigned] [Bug 105922] New: CommaExpression with 'arguments' as last expression throws SyntaxError

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 2 07:33:27 PST 2013


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

           Summary: CommaExpression with 'arguments' as last expression
                    throws SyntaxError
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: andre.bargull at gmail.com


test case:
---
(function(){"use strict"; (1,arguments)=0 })
---

The `Comma Operator` [11.14] calls `GetValue` on its operands, therefore the conditions listed in 11.13.1 are not fulfilled. In particular that means the left-hand-side of the assignment is never of type `Reference`. Instead of a SyntaxError, it should rather be an early ReferenceError, if those were implemented in JSC.

-- 
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