node:vm matches Node’s Script, createContext, compileFunction, and runIn*Context APIs.
Differences from Node
- A context shares intrinsics with the host realm; it is not a security boundary.
SourceTextModuleemits anExperimentalWarningand does not support full linking and evaluation.