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 load(libdir + "asserts.js");
2
3 // Throw a TypeError if the trap reports an extensible object as non-extensible
4 assertThrowsInstanceOf(function () {
5 Object.preventExtensions(new Proxy({}, {
6 preventExtensions: function () {
7 return true;
8 }
9 }));
10 }, TypeError);