blob: 0e46d03e8863ab2634f5400add3fabbbdaf2d305 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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);
}
|