Incorrect decompilation for group assignment in |for| loop

RESOLVED WORKSFORME

Status

()

RESOLVED WORKSFORME
12 years ago
7 years ago

People

(Reporter: jruderman, Unassigned)

Tracking

(Blocks: 1 bug, {testcase})

Trunk
x86
macOS
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
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;) {[] = [];}})
(Reporter)

Comment 2

7 years ago
The new behavior looks correct. The group assignment stays inside the loop now.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.