blob: 3dc101bd6bc51f394c1b37a664e34aa792f8b5ca [file] [log] [blame]
function test() {
var proxied = {};
var passed = false;
Object.preventExtensions(
new Proxy(proxied, {
preventExtensions: function (t) {
passed = t === proxied;
return Object.preventExtensions(proxied);
}
})
);
return passed;
}
if (!test())
throw new Error("Test failed");