-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
Description
- Version: v14.2.0
- Platform: Darwin Kernel Version 19.4.0
- Subsystem: vm
What steps will reproduce the bug?
run this snippet with --experimental-vm-modules
const {SourceTextModule} = require('vm');
let grow = () => {
new SourceTextModule(`1 + 1`);
setTimeout(grow, 100)
}
grow()
How often does it reproduce? Is there a required condition?
Reproducible on every run on my machine.
What is the expected behavior?
SourceTextModule should be cleaned up by GC
What do you see instead?
The SourceTextModule instances never get cleaned up.
Additional information
I think issue is that ModuleWrap is used as a key in WeakMap in vm module, but I am not really familiar with this codebase.
kirillgroshkov, intellix, marcelgerber, acusti, chentsulin and 4 morebrainkim
Metadata
Metadata
Assignees
Labels
vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.