michael@0: // Iterating over the argument to Map can throw. The exception is propagated. michael@0: michael@0: load(libdir + "asserts.js"); michael@0: michael@0: function data2() { michael@0: yield [{}, "XR22/Z"]; michael@0: yield [{}, "23D-BN"]; michael@0: throw "oops"; michael@0: } michael@0: michael@0: var it = data2(); michael@0: assertThrowsValue(function () { Map(it); }, "oops");