[Webkit-unassigned] [Bug 17018] New: Incorrect code generated from Function.toString for get/setters in object literals

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 26 03:38:42 PST 2008


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

           Summary: Incorrect code generated from Function.toString for
                    get/setters in object literals
           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


If you have a function:
function f() {
   ({ set g(x){} });
}

Then f.toString will produce incorrect (non-compilable) output as it quotes the
identifier string:
function f() {
   ({ set "g"(x){} });
}

Found by jsfunfuzz -- maybe i had recopmilation set to not test these cases
when i was running these?


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