michael@0: // Return the trap result michael@0: assertEq(new Proxy({ michael@0: foo: 'bar' michael@0: }, { michael@0: get: function (target, name, receiver) { michael@0: return 'baz'; michael@0: } michael@0: }).foo, 'baz'); michael@0: michael@0: assertEq(new Proxy({ michael@0: foo: 'bar' michael@0: }, { michael@0: get: function (target, name, receiver) { michael@0: return undefined; michael@0: } michael@0: }).foo, undefined);