[Webkit-unassigned] [Bug 36523] New: Parser allows getters/setters to have arguments, should throw

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 24 05:14:10 PDT 2010


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

           Summary: Parser allows getters/setters to have arguments,
                    should throw
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
               URL: http://stuff.gsnedders.com/es/getterparsing.html
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: geoffers+webkit at gmail.com
                CC: mjs at apple.com, ggaren at apple.com, oliver at apple.com


Currently the JSC parser allows getters and setters to have arbitrary numbers
of arguments passed to them: the ES5 spec only defines getters with no
arguments (i.e., "()") and setters with a single argument; as such the current
behaviour is an undocumented extension to the syntax of ES. Syntax extensions
are inevitably the worst type of extension because they prevent all execution
of the script in other engines that don't support them. It'd be preferably to
only allow what the spec requires and throw SyntaxError in the other cases.

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