From fd5a0c7a1fd924ac8a7f3262358d97f3456f1fcc Mon Sep 17 00:00:00 2001 From: Anto Aravinth Date: Fri, 20 Jul 2018 19:30:40 +0530 Subject: [PATCH] doc: fix incorrect method name PR-URL: https://github.com/nodejs/node/pull/21908 Reviewed-By: Colin Ihrig Reviewed-By: Vse Mozhet Byt Reviewed-By: Lance Ball Reviewed-By: James M Snell --- doc/api/vm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.