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