Closed
Bug 376553
Opened 17 years ago
Closed 12 years ago
Decompilation leaves empty braces (involves if(false), try, function declaration)
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jruderman, Unassigned)
Details
(Keywords: testcase)
js> f = function() { { if(false) try { function x(){} } finally { } } } function () { { } } js> eval("" + f) function () { }
Comment 1•13 years ago
|
||
js> f = "(function() { { if(false) try { function x(){} } finally { } } })" "(function() { { if(false) try { function x(){} } finally { } } })" js> print(eval(""+f)) function () { { } } Looks like the empty braces are still there, but at least they stay there with the eval.
OS: Mac OS X → All
Hardware: x86 → All
Comment 2•12 years ago
|
||
Fixed by saving the source.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•