-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Open
Labels
vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
Description
The OOM can be reproduced even without link
and evaluate
:
// Flags: --max-heap-size=16 --experimental-vm-modules
import {SourceTextModule, createContext} from 'vm';
globalThis.iter = 0;
setInterval(() => {
// Do not capture any variables.
globalThis.iter++;
console.log("iterations", globalThis.iter);
const context = createContext();
for (let i = 0; i < 100; i++) {
new SourceTextModule(`
export default function() { }
`, {
identifier: 'foo',
context,
});
}
}, 1);
This crashes after around tens of iterations deterministically.
Originally posted by @legendecas in #50113
Metadata
Metadata
Assignees
Labels
vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.