-1:000000000000 | 0:882bf44c2afd |
---|---|
1 // Return the trap result | |
2 assertEq(new Proxy({ | |
3 foo: 'bar' | |
4 }, { | |
5 get: function (target, name, receiver) { | |
6 return 'baz'; | |
7 } | |
8 }).foo, 'baz'); | |
9 | |
10 assertEq(new Proxy({ | |
11 foo: 'bar' | |
12 }, { | |
13 get: function (target, name, receiver) { | |
14 return undefined; | |
15 } | |
16 }).foo, undefined); |