BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / WeakSet_constructor_invokes_add.js
1 function test() {
2
3 var passed = false;
4 var _add = WeakSet.prototype.add;
5
6 WeakSet.prototype.add = function(v) {
7   passed = true;
8 };
9
10 new WeakSet([ { } ]);
11 WeakSet.prototype.add = _add;
12
13 return passed;
14       
15 }
16
17 if (!test())
18     throw new Error("Test failed");
19