blob: 4e3aa357dfbee9ad602f833a84271584d5d4c17e [file] [log] [blame]
function test() {
var passed = false;
var _set = WeakMap.prototype.set;
WeakMap.prototype.set = function(k, v) {
passed = true;
};
new WeakMap([ [{ }, 42] ]);
WeakMap.prototype.set = _set;
return passed;
}
if (!test())
throw new Error("Test failed");