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

function none() {
    if (0) yield 0;
}
var m = new Map(none());
assertEq(m.size, 0);