WSL should have more tests of type checking failures
[WebKit-https.git] / JSTests / es6 / WeakSet_basic_functionality.js
1 function test() {
2
3 var obj1 = {};
4 var weakset = new WeakSet();
5
6 weakset.add(obj1);
7 weakset.add(obj1);
8
9 return weakset.has(obj1);
10       
11 }
12
13 if (!test())
14     throw new Error("Test failed");
15