BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / WeakMap_constructor_arguments.js
1 function test() {
2
3 var key1 = {};
4 var key2 = {};
5 var weakmap = new WeakMap([[key1, 123], [key2, 456]]);
6
7 return weakmap.has(key1) && weakmap.get(key1) === 123 &&
8        weakmap.has(key2) && weakmap.get(key2) === 456;
9       
10 }
11
12 if (!test())
13     throw new Error("Test failed");
14