Skip to content

Commit

Permalink
doc: fix typo in vm.runInNewContext() description
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#8005
Reviewed-By: Prince John Wesley <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
lpinca authored and jasnell committed Aug 9, 2016
1 parent a722205 commit bb3b4d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ added: v0.3.1
before terminating execution. If execution is terminated, an [`Error`][]
will be thrown.

The `vm.runInContext()` first contextifies the given `sandbox` object (or
The `vm.runInNewContext()` first contextifies the given `sandbox` object (or
creates a new `sandbox` if passed as `undefined`), compiles the `code`, runs it
within the context of the created context, then returns the result. Running code
does not have access to the local scope.
Expand Down

0 comments on commit bb3b4d7

Please sign in to comment.