From bb3b4d7d49d84e024f702b4840b1d3b89eac88f5 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sun, 7 Aug 2016 11:53:16 +0200 Subject: [PATCH] doc: fix typo in vm.runInNewContext() description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/8005 Reviewed-By: Prince John Wesley Reviewed-By: Minwoo Jung Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- doc/api/vm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/vm.md b/doc/api/vm.md index 7d4cd9eaf5..be3a490336 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -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.