summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/WeakMap-constructor-generator-3.js
blob: 1cdd5f380be17cf063cea369583de3595ad42e1c (plain)
1
2
3
4
5
6
7
8
9
10
11
// The argument to WeakMap may be a generator-iterator that produces no values.

function none() {
    if (0) yield 0;
}
new WeakMap(none());

function* none2() {
    if (0) yield 0;
}
new WeakMap(none2());