Skip to content

Commit b6a6004

Browse files
committed
doc: fix typo in vm.runInNewContext() description
PR-URL: #8005
1 parent 4c86fa3 commit b6a6004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/vm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ added: v0.3.1
321321
before terminating execution. If execution is terminated, an [`Error`][]
322322
will be thrown.
323323

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

0 commit comments

Comments
 (0)