summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/proxy/delete-not-invoked-on-proto.js
blob: 1de2eaef040f263e5cca56ce9c04df1d302e6224 (plain)
1
2
3
4
5
6
7
8
9
10
// Create Proxy that throws for everything.
var {proxy, revoke} = Proxy.revocable({}, {});

var obj = {__proto__: proxy, a: 1};
// This revokes the proxy, so every operation on it THROWS.
revoke();

assertEq(delete obj.a, true);
assertEq(delete obj.b, true);
// Should not have invoked anything on [[Prototype]]