Sign in
cobalt
/
cobalt
/
308ed6b84664d59944cd65f4b4359c28a2443be6
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
for-of
/
arrays-4.js
blob: 8567f2b60e7dc55bb11994d97a226ac2f4906c6e [
file
] [
log
] [
blame
]
// Nested for-of loops on the same array get distinct iterators.
var
a
=
[
1
,
2
,
3
];
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,'
);