summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1628440.js
blob: e128fcb7ac2a8799d1e34accd1e3e5c120f8b035 (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| error: ReferenceError
gczeal(10, 2);
let cleanup = function(iter) {}
let key = {"k": "this is my key"};
let fg = new FinalizationRegistry(cleanup);
let object = {};
fg.register(object, {}, key);
let success = fg.unregister(key);
throw new ReferenceError();