doc: fix incorrect method invocation on vm.Module instance
In the VM docs, under section Constructor: new vm.Module
, the code
example incorrectly uses module.initialize()
.
Change it to the correct method module.instantiate()
.
Fixes: https://github.com/nodejs/node/issues/21904
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines