summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/collections/bug-1887939-1.js
blob: 292c44d492aed68d3732132bd50d347403f12d6c (plain)
1
2
3
4
5
6
7
var map = new WeakMap();
var sym = Symbol();
try {
  map.set(sym, 1);
} catch (e) {
  assertEq(!!e.message.match(/an unregistered symbol/), false);
}