Closed Bug 376553 Opened 13 years ago Closed 7 years ago

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

Categories

(Core :: JavaScript Engine, defect, minor)

defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: testcase)

js> f = function() { { if(false) try { function x(){} } finally { } } }
function () {
    {
    }
}

js> eval("" + f)
function () {
}
No longer blocks: 349611
Blocks: 349611
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: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.