diff options
author | Anto Aravinth <anto.aravinth.cse@gmail.com> | 2018-07-20 19:30:40 +0530 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-07-20 18:29:36 +0300 |
commit | 79e63c5fc727254e3d1299c7d062b6caca6e9a86 (patch) | |
tree | 70111fe08e0e226f221ebae7632b61a825eeea39 /doc/api/vm.md | |
parent | c3f8dd6f98328a9a47814f1856bc0914859c6e19 (diff) | |
download | android-node-v8-79e63c5fc727254e3d1299c7d062b6caca6e9a86.tar.gz android-node-v8-79e63c5fc727254e3d1299c7d062b6caca6e9a86.tar.bz2 android-node-v8-79e63c5fc727254e3d1299c7d062b6caca6e9a86.zip |
doc: fix incorrect method name
PR-URL: https://github.com/nodejs/node/pull/21908
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Lance Ball <lball@redhat.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/vm.md')
-rw-r--r-- | doc/api/vm.md | 2 |
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. |