Incorrect decompilation for group assignment in |for| loop

RESOLVED WORKSFORME

Status

()

defect
RESOLVED WORKSFORME
12 years ago
8 years ago

People

(Reporter: jruderman, Unassigned)

Tracking

(Blocks 1 bug, {testcase})

Trunk
x86
macOS
Points:
---
Dependency tree / graph

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

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