blob: 0e46d03e8863ab2634f5400add3fabbbdaf2d305 [file] [log] [blame]
// Forward to the target if the trap is not defined
var proto = Object.create(null, {
'foo': {
configurable: true
}
});
var target = Object.create(proto, {
'bar': {
configurable: true
}
});
for (let p of [new Proxy(target, {}), Proxy.revocable(target, {}).proxy]) {
assertEq('foo' in p, true);
assertEq('bar' in p, true);
assertEq('baz' in p, false);
assertEq(Symbol() in p, false);
}