summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/ion/bug1146410.js
blob: fd7caafda804837457b09eca1b703c8dff7eac78 (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| error: TypeError
function foo() {
  var ws = new WeakSet();
  ws.add({});
  for (var i = 0; i < 10; i++)
    ws.add(WeakSet + "");
}
foo();
delete Math