BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / WeakMap_no_WeakMap.prototype.clear_method.js
1 function test() {
2
3 if (!("clear" in WeakMap.prototype)) {
4   return true;
5 }
6 var m = new WeakMap();
7 var key = {};
8 m.set(key, 2);
9 m.clear();
10 return m.has(key);
11       
12 }
13
14 if (!test())
15     throw new Error("Test failed");
16