comparison: js/src/jit-test/tests/collections/Map-constructor-generator-3.js
js/src/jit-test/tests/collections/Map-constructor-generator-3.js
- branch
- TOR_BUG_9701
- changeset 15
- b8a032363ba2
equal
deleted
inserted
replaced
|
1 // The argument to Map may be a generator-iterator that produces no values. |
|
2 |
|
3 assertEq(Map(x for (x of [])).size, 0); |
|
4 |
|
5 function none() { |
|
6 if (0) yield 0; |
|
7 } |
|
8 assertEq(Map(none()).size, 0); |