Skip to content

Commit 51dfebf

Browse files
committed
doc: fix vm.runInNewContext signature
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]>
1 parent 10f9374 commit 51dfebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/vm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ console.log(util.inspect(sandbox));
758758
// { globalVar: 1024 }
759759
```
760760

761-
## vm.runInNewContext(code[, sandbox][, options])
761+
## vm.runInNewContext(code[, sandbox[, options]])
762762
<!-- YAML
763763
added: v0.3.1
764764
-->

0 commit comments

Comments
 (0)