bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

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

RESOLVED WORKSFORME

Status

()

Core
JavaScript Engine
--
minor
RESOLVED WORKSFORME
11 years ago
6 years ago

People

(Reporter: Jesse Ruderman, Unassigned)

Tracking

(Blocks: 1 bug, {testcase})

Trunk
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

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

js> eval("" + f)
function () {
}
(Reporter)

Updated

11 years ago
No longer blocks: 349611
(Reporter)

Updated

11 years ago
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
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.