- Notifications
You must be signed in to change notification settings - Fork 204
Closed
Description
import * as os from "os"; import * as std from "std"; globalThis.obj = { data: 'example' }; globalThis.finalizationRegistry = new FinalizationRegistry((heldValue) => { console.log('Object has been garbage collected:', heldValue); }); finalizationRegistry.register(obj, 'some value');
Running the above code will crash。
Metadata
Metadata
Assignees
Labels
No labels