1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/collections/Map-constructor-generator-3.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,8 @@ 1.4 +// The argument to Map may be a generator-iterator that produces no values. 1.5 + 1.6 +assertEq(Map(x for (x of [])).size, 0); 1.7 + 1.8 +function none() { 1.9 + if (0) yield 0; 1.10 +} 1.11 +assertEq(Map(none()).size, 0);