Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix incorrect method invocation on vm.Module instance #21911

Closed
wants to merge 1 commit into from

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