Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // An exception thrown from a proxy trap while getting the .iterator method is propagated.
3 load(libdir + "asserts.js");
4 load(libdir + "iteration.js");
6 var p = Proxy.create({
7 getPropertyDescriptor: function (name) {
8 if (name == std_iterator)
9 throw "fit";
10 return undefined;
11 }
12 });
13 assertThrowsValue(function () { for (var v of p) {} }, "fit");