Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
for-of
/
arrays-slow-3.js
blob: 8a00fd51b0745a222b202eb51721441c0bc8db98 [
file
] [
log
] [
blame
]
// Nested for-of loops on the same slow array get distinct iterators.
var
a
=
[
1
,
2
,
3
];
a
.
slow
=
true
;
var
s
=
''
;
for
(
var
x of a
)
for
(
var
y of a
)
s
+=
''
+
x
+
y
+
','
;
assertEq
(
s
,
'11,12,13,21,22,23,31,32,33,'
);