From d52bfac1ad76a3e3231356adad280738af66e47d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sun, 15 Jul 2018 17:27:07 +0200 Subject: [PATCH] doc: fix vm.runInNewContext signature The `options` parameter cannot be passed without `sandbox`. --- 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 d3be08f89b377a..7d14293ac4e45b 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -758,7 +758,7 @@ console.log(util.inspect(sandbox)); // { globalVar: 1024 } ``` -## vm.runInNewContext(code[, sandbox][, options]) +## vm.runInNewContext(code[, sandbox[, options]])