Closed Bug 352735 Opened 19 years ago Closed 13 years ago

Round-trip bracing change with "for(let a;;) function y(){}"

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

This function gains braces during a round-trip through the decompiler. js> function() { for(let a;;) function y(){} } function () { for (let a;;) { function y() { } } } js> function () { for (let a;;) { function y() { } } } function () { for (let a;;) { { function y() { } } } }
Same can happen with for..in: js> function() { for(let a in []) function y(){} }
OS: Mac OS X → All
Hardware: PowerPC → All
Fixed by saving 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.