1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/collections/Map-constructor-generator-exception.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,12 @@ 1.4 +// Iterating over the argument to Map can throw. The exception is propagated. 1.5 + 1.6 +load(libdir + "asserts.js"); 1.7 + 1.8 +function data2() { 1.9 + yield [{}, "XR22/Z"]; 1.10 + yield [{}, "23D-BN"]; 1.11 + throw "oops"; 1.12 +} 1.13 + 1.14 +var it = data2(); 1.15 +assertThrowsValue(function () { Map(it); }, "oops");