Sign in
cobalt
/
cobalt
/
308ed6b84664d59944cd65f4b4359c28a2443be6
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
collections
/
Map-constructor-generator-3.js
blob: 4c2de0428e43636c6de2677c479a1dfcb86edf58 [
file
] [
log
] [
blame
]
// The argument to Map may be a generator-iterator that produces no values.
var
m
=
new
Map
(
x
for
(
x of
[]));
assertEq
(
m
.
size
,
0
);
function
none
()
{
if
(
0
)
yield
0
;
}
m
=
new
Map
(
none
());
assertEq
(
m
.
size
,
0
);