BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / Proxy_internal_ownKeys_calls_SerializeJSONObject.js
1 function test() {
2
3 // SerializeJSONObject -> EnumerableOwnNames -> [[OwnPropertyKeys]]
4 var ownKeysCalled = 0;
5 var p = new Proxy({}, { ownKeys: function(o) { ownKeysCalled++; return Object.keys(o); }});
6 JSON.stringify({a:p,b:p});
7 return ownKeysCalled === 2;
8       
9 }
10
11 if (!test())
12     throw new Error("Test failed");
13