diff --git a/doc/api/vm.md b/doc/api/vm.md index 7d14293ac4e45b..f294e7301bd799 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.