michael@0: // An exception thrown from a proxy trap while getting the .iterator method is propagated. michael@0: michael@0: load(libdir + "asserts.js"); michael@0: load(libdir + "iteration.js"); michael@0: michael@0: var p = Proxy.create({ michael@0: getPropertyDescriptor: function (name) { michael@0: if (name == std_iterator) michael@0: throw "fit"; michael@0: return undefined; michael@0: } michael@0: }); michael@0: assertThrowsValue(function () { for (var v of p) {} }, "fit");