Closed Bug 475985 Opened 16 years ago Closed 13 years ago

Incorrect decompilation: missing second loop of array comprehension in this weird case

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

js> var f = (function(a) { return [1 for (x in a) for (y in (3).s)].length; }) js> print(f([4])); 0 js> print(f); function (a) { return [1 for (x in a)].length; } js> var g = eval(uneval(f)); js> print(g([4])); 1
Fixed by saving the 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.