Skip to content

Commit

Permalink
doc: add metadata for vm code generation options
Browse files Browse the repository at this point in the history
Add changes entries for vm.createContext codeGeneration
option and script.runInNewContext contextCodeGeneration
option.

PR-URL: #19440
Fixes: #19419
Refs: #19016
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
TomCoded authored and tniessen committed Mar 25, 2018
1 parent 92de0eb commit 54fbbb1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/api/vm.md
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,10 @@ overhead.
### script.runInNewContext([sandbox[, options]])
<!-- YAML
added: v0.3.1
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/19016
description: The `contextCodeGeneration` option is supported now.
-->

* `sandbox` {Object} An object that will be [contextified][]. If `undefined`, a
Expand Down Expand Up @@ -573,6 +577,10 @@ console.log(globalVar);
## vm.createContext([sandbox[, options]])
<!-- YAML
added: v0.3.1
changes:
- version: REPLACEME
pr-url: https://github.com/nodejs/node/pull/19016
description: The `codeGeneration` option is supported now.
-->

* `sandbox` {Object}
Expand Down

0 comments on commit 54fbbb1

Please sign in to comment.