Skip to content

Commit

Permalink
doc: fix vm.runInNewContext signature
Browse files Browse the repository at this point in the history
The `options` parameter cannot be passed without `sandbox`.

PR-URL: #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>
  • Loading branch information
targos authored and addaleax committed Jul 15, 2018
1 parent 6a99e3e commit d279a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-->
Expand Down

0 comments on commit d279a8f

Please sign in to comment.