Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
collections
/
WeakMap-constructor-generator-3.js
blob: 88099b41dcf3301c78e879546cd55fcd65362b83 [
file
] [
log
] [
blame
]
// The argument to WeakMap may be a generator-iterator that produces no values.
new
WeakMap
(
x
for
(
x of
[]));
function
none
()
{
if
(
0
)
yield
0
;
}
new
WeakMap
(
none
());
function
*
none2
()
{
if
(
0
)
yield
0
;
}
new
WeakMap
(
none2
());