0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

doc: add metadata for vm code generation options

Add changes entries for vm.createContext codeGeneration
option and script.runInNewContext contextCodeGeneration
option.

PR-URL: https://github.com/nodejs/node/pull/19440
Fixes: https://github.com/nodejs/node/issues/19419
Refs: https://github.com/nodejs/node/pull/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>
This commit is contained in:
TomCoded 2018-03-19 05:56:00 +00:00 committed by Tobias Nießen
parent 92de0eb419
commit 54fbbb1037
No known key found for this signature in database
GPG Key ID: 718207F8FD156B70

View File

@ -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
@ -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}