Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
collections
/
iterator-2.js
blob: 923a9b79b4b88b7a4ca802ea8662a6a41301a5cb [
file
] [
log
] [
blame
]
// for-of on an empty collection does not execute the loop body or modify the loop variable.
function
test
(
empty
)
{
var
x
=
'unchanged'
;
for
(
x of empty
)
throw
fit
;
assertEq
(
x
,
'unchanged'
);
}
test
([]);
test
(
new
Map
);
test
(
new
Set
);