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)
Core
JavaScript Engine
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() {
}
}
}
}
Reporter | ||
Comment 1•19 years ago
|
||
Same can happen with for..in:
js> function() { for(let a in []) function y(){} }
Updated•13 years ago
|
OS: Mac OS X → All
Hardware: PowerPC → All
![]() |
||
Comment 2•13 years ago
|
||
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.
Description
•