Debian Codegraph @

js/src/tests/non262/WeakMap/symbols_not_as_weakmap_keys.js

raw
1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/licenses/publicdomain/ */
3 // SKIP test262 export
4 // Conflicts with https://github.com/tc39/proposal-symbols-as-weakmap-keys
5
6 var m = new WeakMap;
7 var sym = Symbol();
8 assertThrowsInstanceOf(() => m.set(sym, 0), TypeError);
9
10 if (typeof reportCompare === "function")
11 reportCompare(0, 0);