Closed Bug 376553 Opened 18 years ago Closed 13 years ago

Decompilation leaves empty braces (involves if(false), try, function declaration)

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

js> f = function() { { if(false) try { function x(){} } finally { } } } function () { { } } js> eval("" + f) function () { }
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
Fixed by saving the source.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.