js/src/jit-test/tests/proxy/testDirectProxyPreventExtensions4.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:63257d81d591
1 load(libdir + "asserts.js");
2
3 // Throw a TypeError if the object refuses to be made non-extensible
4 assertThrowsInstanceOf(function () {
5 Object.preventExtensions(new Proxy({}, {
6 preventExtensions: function () {
7 return false;
8 }
9 }));
10 }, TypeError);

mercurial