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)
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•13 years ago
|
||
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.
Description
•