Sign in
cobalt
/
cobalt
/
308ed6b84664d59944cd65f4b4359c28a2443be6
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
collections
/
Set-iterator-1.js
blob: c0bd8fc5a302233a7d89e6d2a4066a8ae41ee7f3 [
file
] [
log
] [
blame
]
// for-of can be used to iterate over a Set twice.
var
set
=
new
Set
([
'a'
,
'b'
,
'c'
]);
var
log
=
''
;
for
(
let i
=
0
;
i
<
2
;
i
++)
{
for
(
let x of
set
)
log
+=
x
;
log
+=
';'
}
assertEq
(
log
,
'abc;abc;'
);