Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
collections
/
Set-iterator-2.js
blob: 32737a285e85af8698cc1d615493b88e153f1e4b [
file
] [
log
] [
blame
]
// Nested for-of loops can iterate over a Set.
var
map
=
new
Set
([
'a'
,
'b'
]);
var
log
=
''
;
for
(
let x of map
)
{
log
+=
x
+
':'
for
(
let y of map
)
log
+=
y
;
log
+=
';'
};
assertEq
(
log
,
'a:ab;b:ab;'
);