Closed Bug 354878 Opened 18 years ago Closed 18 years ago

Decompiling loses "if(0) { LABEL: const x; }"

Categories

(Core :: JavaScript Engine, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

()

VERIFIED FIXED

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(Keywords: testcase, verified1.8.1.1)

js> f = function () { if(0) { L: const x; } return x; } function () { return x; } js> f() js> eval("" + f)() typein:4: ReferenceError: x is not defined
Fixed by the "destructuring decompilation, v5d" patch in bug 346642.
Depends on: desdec
Assignee: general → brendan
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Checking in regress-354878.js; /cvsroot/mozilla/js/tests/js1_5/Regress/regress-354878.js,v <-- regress-354878.js initial revision: 1.1 done
Flags: in-testsuite+
verified fixed 1.9 20061002 windows/linux, verified not a problem on 1.8
Status: RESOLVED → VERIFIED
fixed by Bug 346642 verified fixed 20061203 1.8.1.1 windows/linux/mac*
Keywords: verified1.8.1.1
You need to log in before you can comment on or make changes to this bug.