Closed Bug 475882 Opened 15 years ago Closed 12 years ago

Decompiler omits array comprehension condition that contains assignment

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

js> var f = function() { var count = 0; [1 for each (_ in [1]) if (count += 1)]; return count; };

js> f();
1

js> print(uneval(f));
(function () {var count = 0;[1 for each (_ in [1])];return count;})

js> var g = eval(uneval(f));

js> g();
0
OS: Mac OS X → All
Hardware: x86 → All
Fixed by saving the source.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.