From 51dfebf9acc30173f15b099cd0c378aaa892fd00 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`. PR-URL: https://github.com/nodejs/node/pull/21824 Reviewed-By: Vse Mozhet Byt Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Luigi Pinca Reviewed-By: Anna Henningsen --- 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]])