Closed
Bug 380506
Opened 18 years ago
Closed 18 years ago
bug 349650 regressed nested-for and for-if comprehension decompilation
Categories
(Core :: JavaScript Engine, defect, P1)
Core
JavaScript Engine
Tracking
()
VERIFIED
FIXED
mozilla1.9alpha5
People
(Reporter: brendan, Assigned: brendan)
References
Details
The patch for bug 349650 broke cases like these:
js> function (){return [i*i for(i in [0]) if (i%2)]}
function () {
return [i * i for (i in [0]) if (i % 2)];
}
js> function (){return [i*j for(i in [0]) for (j in [1])]}
function () {
return [i * j for (i in [0]) for (j in [1])];
}
This shows correct behavior. With the bug, nothing after the for (i in [0]) survives inside the comprehension.
/be
Assignee | ||
Updated•18 years ago
|
Assignee | ||
Comment 1•18 years ago
|
||
I thought we had testcases covering for-for and for-if comprehensions, and fuzzer coverage to boot -- Jesse, can you add these cases to the fuzzer?
/be
Comment 2•18 years ago
|
||
I'll make sure that jsfunfuzz tests for-for and for-if comprehensions. But it wouldn't have found this bug, because its testing of decompilation is limited to making sure the decompiled code compiles and does not change during a round trip.
Comment 3•18 years ago
|
||
This is all good now that bug 380237 is fixed.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Comment 4•18 years ago
|
||
/cvsroot/mozilla/js/tests/js1_7/decompilation/regress-380506.js,v <-- regress-380506.js
initial revision: 1.1
Flags: in-testsuite? → in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•