WSL should have more tests of type checking failures
[WebKit-https.git] / JSTests / es6 / WeakMap_WeakMap.prototype.set_returns_this.js
1 function test() {
2
3 var weakmap = new WeakMap();
4 var key = {};
5 return weakmap.set(key, 0) === weakmap;
6       
7 }
8
9 if (!test())
10     throw new Error("Test failed");
11