summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/object-lookup-shadowing.js
blob: 927727e32a133d2a4468fec4ae0c16b27ee8ccd2 (plain)
1
2
3
4
5
var x = {get prop() { return 2; }, set prop(v) {}};
var y = {__proto__: x, prop: 1};

assertEq(y.__lookupGetter__("prop"), undefined);
assertEq(y.__lookupSetter__("prop"), undefined);