Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
for-of
/
arrays-slow-5.js
blob: 36173e352bf2ad64b6193f7e0d105add17b5c870 [
file
] [
log
] [
blame
]
// Slowifying an array while it is being iterated does not affect iteration.
var
a
=
[
9
,
8
,
7
,
6
,
5
,
4
,
3
];
var
log
=
''
;
for
(
var
x of a
)
{
log
+=
x
;
if
(
x
===
6
)
a
.
slow
=
true
;
}
assertEq
(
log
,
"9876543"
);