Skip to content

Commit 9f78c3f

Browse files
lpincacjihrig
authored andcommitted
doc: fix typo in vm.runInNewContext() description
PR-URL: #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]>
1 parent b0a557e commit 9f78c3f

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)