Closed
Bug 465902
Opened 17 years ago
Closed 17 years ago
TM: wrong number (involves |let|, global, six times through outer loop)
Categories
(Core :: JavaScript Engine, defect, P2)
Tracking
()
VERIFIED
WORKSFORME
| Tracking | Status | |
|---|---|---|
| status1.9.2 | --- | beta1-fixed |
People
(Reporter: jruderman, Unassigned)
References
Details
(Keywords: testcase)
for (let j = 0; j < 6; ++j) {
e = 3;
for each (let c in [10, 20, 30]) {
print("" + e);
e = c;
}
}
delete e;
Does fine for the first five(!!) times through the outer loop, correctly printing these three values as it goes through the inner loop:
3
10
20
But the sixth time through the outer loop, it prints this instead:
3
3.0000000000000044 <-- wtf?
20
Updated•17 years ago
|
Flags: blocking1.9.1+
Comment 1•17 years ago
|
||
I'm pretty sure this is a dup of 465915. I'll mark it as blocked by that bug for now.
Depends on: 465915
Updated•17 years ago
|
Priority: -- → P2
| Reporter | ||
Comment 2•17 years ago
|
||
Yep, the fix for bug 469044 (which fixed bug 465915) seems to have fixed this as well. Andreas, want to add this testcase too?
Status: NEW → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
Resolution: --- → WORKSFORME
Comment 3•17 years ago
|
||
Yeah we should have this test-case too. Add it to trace-tests. If you need help just assign the bug to me and I will do it.
| Reporter | ||
Comment 4•16 years ago
|
||
trace-test added in rev d5da9351d606
Flags: in-testsuite? → in-testsuite+
Updated•16 years ago
|
status1.9.2:
--- → beta1-fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•