[Webkit-unassigned] [Bug 17020] New: Function.toString does not parenthesise numbers for the bracket accessor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 26 04:45:34 PST 2008


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

           Summary: Function.toString does not parenthesise numbers for the
                    bracket accessor
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Keywords: HasReduction, NeedsRadar
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: oliver at apple.com
                CC: darin at apple.com, jruderman at gmail.com


In the example
function f() {
    (-1)[0];
}

f.toString() produces:
function f() {
    -1[0];
}

which is invalid JS


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