Bug 17013

Summary: JSC can't round trip certain for-loops
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: JavaScriptCoreAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, jruderman, slewis
Priority: P2 Keywords: HasReduction, Regression
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on:    
Bug Blocks: 13638    
Attachments:
Description Flags
patch oliver: review+

Oliver Hunt
Reported 2008-01-25 19:13:53 PST
Given the code function f(){ for (var x;;) ; } f.toString() produces: function f(){ var x; for (var true;true;true) ; } in which "Var true" is invalid. Found by JSFunFuzz
Attachments
patch (5.99 KB, patch)
2008-01-25 22:35 PST, Darin Adler
oliver: review+
Darin Adler
Comment 1 2008-01-25 22:35:11 PST
Oliver Hunt
Comment 2 2008-01-26 00:20:07 PST
Comment on attachment 18698 [details] patch I wasgoing to suggest making additions to fast/js/function-toString-parentheses.js But your choice seems much better r=me
Darin Adler
Comment 3 2008-01-26 01:03:23 PST
Committed revision 29804.
Note You need to log in before you can comment on or make changes to this bug.