summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichaƫl Zasso <targos@protonmail.com>2018-07-15 17:27:07 +0200
committerAnna Henningsen <anna@addaleax.net>2018-07-16 01:31:58 +0200
commitd279a8fceea91a0a27158867570d8f203cb372a3 (patch)
tree58d89a6ca37ed16fe21689e0a3a62708167bc0c3 /doc
parent6a99e3e21c5ce13eb079c5d29db4d4fe616802fc (diff)
downloadandroid-node-v8-d279a8fceea91a0a27158867570d8f203cb372a3.tar.gz
android-node-v8-d279a8fceea91a0a27158867570d8f203cb372a3.tar.bz2
android-node-v8-d279a8fceea91a0a27158867570d8f203cb372a3.zip
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 <vsemozhetbyt@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/vm.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/vm.md b/doc/api/vm.md
index d3be08f89b..7d14293ac4 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]])
<!-- YAML
added: v0.3.1
-->