Skip to content

Commit fd5a0c7

Browse files
antsmartiantargos
authored andcommitted
doc: fix incorrect method name
PR-URL: #21908 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Lance Ball <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 46d14fc commit fd5a0c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/vm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const contextifiedSandbox = vm.createContext({ secret: 42 });
198198
});
199199
// Since module has no dependencies, the linker function will never be called.
200200
await module.link(() => {});
201-
module.initialize();
201+
module.instantiate();
202202
await module.evaluate();
203203

204204
// Now, Object.prototype.secret will be equal to 42.

0 commit comments

Comments
 (0)