blob: 9cca73e70e4ee248fa182f1dd281e592f02b6969 [file] [log] [blame]
function test() {
var obj = Proxy.revocable({}, { get: function() { return 5; } });
var passed = (obj.proxy.foo === 5);
obj.revoke();
try {
obj.proxy.foo;
} catch(e) {
passed &= e instanceof TypeError;
}
return passed;
}
if (!test())
throw new Error("Test failed");