Sign in
cobalt
/
cobalt
/
308ed6b84664d59944cd65f4b4359c28a2443be6
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
for-of
/
arrays-slow-2.js
blob: dc4cf4fa796b0988141f8cd23706eea6ef9c2bb8 [
file
] [
log
] [
blame
]
// Two 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
)
s
+=
x
;
for
(
var
y of a
)
s
+=
y
;
assertEq
(
s
,
'123123'
);