blob: 3e6b9d72e356480e2b78f0b336f252d0eec641d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
'use strict';
// Flags: --expose-gc --harmony-weak-refs
const common = require('../common');
const g = new globalThis.FinalizationGroup(common.mustCallAtLeast(1));
g.register({}, 42);
setTimeout(() => {
globalThis.gc();
g.cleanupSome();
}, 200);
|