Skip to content

doc: fix incorrect method invocation on vm.Module instance

Rodrigo Muino Tomonari requested to merge github/fork/sagirk/fix-vm-doc into master

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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading