BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / Proxy_internal_getOwnPropertyDescriptor_calls_Object.prototype.hasOwnProperty.js
1 function test() {
2
3 // Object.prototype.hasOwnProperty -> HasOwnProperty -> [[GetOwnProperty]]
4 var gopd = [];
5 var p = new Proxy({foo:1, bar:2},
6   { getOwnPropertyDescriptor: function(o, v) { gopd.push(v); return Object.getOwnPropertyDescriptor(o, v); }});
7 p.hasOwnProperty('garply');
8 return gopd + '' === "garply";
9       
10 }
11
12 if (!test())
13     throw new Error("Test failed");
14