projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
tests
/
js1_7
/
extensions
/
regress-590813.js
1
2
var actual = '';
3
var expected = 'A0B1B2C0C1C2';
4
5
var x = Iterator([1,2,3], true);
6
7
for (var a in x) {
8
actual += 'A' + a;
9
for (var b in x) {
10
actual += 'B' + b;
11
}
12
}
13
14
var y = Iterator([1,2,3], true);
15
16
for (var c in y) {
17
actual += 'C' + c;
18
}
19
for (var d in y) {
20
actual += 'D' + d;
21
}
22
23
reportCompare(expected, actual, "Handle nested Iterator iteration right");