Closed Bug 381196 Opened 17 years ago Closed 13 years ago

Incorrect decompilation for group assignment in |for| loop

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

js> (function() { for(; 0;) [] = [] })
function () {
    for (; 0;) {
    }
[] = []}

Found by jsfunfuzz because it causes a round-trip change.
Seems the behavior has changed.

js> (function() { for(; 0;) [] = [] })
(function () {for (; false;) {[] = [];}})
The new behavior looks correct. The group assignment stays inside the loop now.
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.