mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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>
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
-->
|
||||
|
||||
Reference in new issue
Block a user