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 <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • Loading branch information
targos committed Jul 16, 2018
1 parent 10f9374 commit 51dfebf
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 51dfebf

Please sign in to comment.