From e3f9a0b363ac4914c0c43ee26d5dfbb97cecfda7 Mon Sep 17 00:00:00 2001 From: TomCoded Date: Mon, 19 Mar 2018 05:56:00 +0000 Subject: [PATCH 1/2] doc: add changes entry for vm code generation options Add changes entries for vm.createContext codeGeneration option and script.runInNewContext contextCodeGeneration option. fixes: https://github.com/nodejs/node/issues/19419 refs: https://github.com/nodejs/node/pull/19016 --- doc/api/vm.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/api/vm.md b/doc/api/vm.md index b9ccf93b7beb67..019a6a75179177 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -469,6 +469,10 @@ overhead. ### script.runInNewContext([sandbox[, options]]) * `sandbox` {Object} An object that will be [contextified][]. If `undefined`, a @@ -573,6 +577,10 @@ console.log(globalVar); ## vm.createContext([sandbox[, options]]) * `sandbox` {Object} From 7ee1875d953cb58c49061d97f6cc1d5631ce1a96 Mon Sep 17 00:00:00 2001 From: TomCoded Date: Mon, 19 Mar 2018 18:06:52 +0000 Subject: [PATCH 2/2] doc: fix indentation of new changes for vm code generation options --- doc/api/vm.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/vm.md b/doc/api/vm.md index 019a6a75179177..c729ef59991cc8 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -472,7 +472,7 @@ added: v0.3.1 changes: - version: REPLACEME pr-url: https://github.com/nodejs/node/pull/19016 - description: The `contextCodeGeneration` option is supported now. + description: The `contextCodeGeneration` option is supported now. --> * `sandbox` {Object} An object that will be [contextified][]. If `undefined`, a @@ -580,7 +580,7 @@ added: v0.3.1 changes: - version: REPLACEME pr-url: https://github.com/nodejs/node/pull/19016 - description: The `codeGeneration` option is supported now. + description: The `codeGeneration` option is supported now. --> * `sandbox` {Object}