Sign in
chromium
/
external
/
github.com
/
v8
/
node
/
refs/heads/fuchsia
/
.
/
test
/
parallel
/
test-finalization-group.js
blob: 4b9357e4d18e6c21d53fc6534f5af1f98805b150 [
file
] [
log
] [
blame
] [
edit
]
'use strict'
;
// Flags: --expose-gc --harmony-weak-refs
const
common
=
require
(
'../common'
);
const
g
=
new
globalThis
.
FinalizationRegistry
(
common
.
mustCallAtLeast
(
1
));
g
.
register
({},
42
);
setTimeout
(()
=>
{
globalThis
.
gc
();
g
.
cleanupSome
();
},
200
);