summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/api/vm.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/vm.md b/doc/api/vm.md
index 7d14293ac4..f294e7301b 100644
--- a/doc/api/vm.md
+++ b/doc/api/vm.md
@@ -198,7 +198,7 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
});
// Since module has no dependencies, the linker function will never be called.
await module.link(() => {});
- module.initialize();
+ module.instantiate();
await module.evaluate();
// Now, Object.prototype.secret will be equal to 42.