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

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