Bug 17931

Summary: Incorrect decompilation with |new|
Product: WebKit Reporter: Jesse Ruderman <jruderman>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Minor CC: gavin.sharp
Priority: P2 Keywords: HasReduction, InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on:    
Bug Blocks: 13638    
Attachments:
Description Flags
Test case oliver: review+

Jesse Ruderman
Reported 2008-03-18 18:21:31 PDT
> f = (function () { new (a.b()).c }) function () { new a.b().c; } > eval("(" + f + ")") function () { (new a.b()).c; } At some point, the function changed meaning... This bug exists in Safari 3.1 and in ToT testkjs.
Attachments
Test case (2.17 KB, patch)
2008-06-08 22:19 PDT, Cameron Zwarich (cpst)
oliver: review+
Mark Rowe (bdash)
Comment 1 2008-03-18 18:59:48 PDT
Cameron Zwarich (cpst)
Comment 2 2008-06-08 22:19:06 PDT
Created attachment 21589 [details] Test case This is trivially fixed by SquirrelFish, because it uses the original source. Here's a test case so we can close the bug.
Cameron Zwarich (cpst)
Comment 3 2008-06-08 22:21:51 PDT
Landed in r34462.
Note You need to log in before you can comment on or make changes to this bug.