From 9f78c3f64f05b68f1a2324d5bc14de555cf7a948 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 7d4cd9eaf5eae4..be3a490336b62b 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.