Skip to content

Conversation

sagirk
Copy link
Contributor

@sagirk sagirk commented Jul 20, 2018

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: #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

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: nodejs#21904
@trivikr
Copy link
Member

trivikr commented Jul 20, 2018

Looks like this was already fixed in #21908
Closing.

@trivikr trivikr closed this Jul 20, 2018
@sagirk sagirk deleted the fix-vm-doc branch November 20, 2018 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10.7.0 doc mistake: new vm.Module
2 participants