From c3a3cb69aaf8a4fcf3b346bcfbc1dc3857ce2225 Mon Sep 17 00:00:00 2001 From: Shigma <33423008+Shigma@users.noreply.github.com> Date: Sun, 30 Aug 2020 10:19:30 +0800 Subject: [PATCH] doc: fix a typo of microtaskMode PR-URL: https://github.com/nodejs/node/pull/34980 Reviewed-By: Derek Lewis Reviewed-By: Rich Trott Reviewed-By: Harshitha K P Reviewed-By: Luigi Pinca --- doc/api/vm.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/vm.md b/doc/api/vm.md index 843f3f85cecbe9..e540a9f11e4f89 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -229,7 +229,7 @@ changes: * `wasm` {boolean} If set to false any attempt to compile a WebAssembly module will throw a `WebAssembly.CompileError`. **Default:** `true`. * `microtaskMode` {string} If set to `afterEvaluate`, microtasks (tasks - scheduled through `Promise`s any `async function`s) will be run immediately + scheduled through `Promise`s and `async function`s) will be run immediately after the script has run. They are included in the `timeout` and `breakOnSigint` scopes in that case. * Returns: {any} the result of the very last statement executed in the script. @@ -878,7 +878,7 @@ changes: * `wasm` {boolean} If set to false any attempt to compile a WebAssembly module will throw a `WebAssembly.CompileError`. **Default:** `true`. * `microtaskMode` {string} If set to `afterEvaluate`, microtasks (tasks - scheduled through `Promise`s any `async function`s) will be run immediately + scheduled through `Promise`s and `async function`s) will be run immediately after a script has run through [`script.runInContext()`][]. They are included in the `timeout` and `breakOnSigint` scopes in that case. * Returns: {Object} contextified object. @@ -1082,7 +1082,7 @@ changes: recommended in order to take advantage of error tracking, and to avoid issues with namespaces that contain `then` function exports. * `microtaskMode` {string} If set to `afterEvaluate`, microtasks (tasks - scheduled through `Promise`s any `async function`s) will be run immediately + scheduled through `Promise`s and `async function`s) will be run immediately after the script has run. They are included in the `timeout` and `breakOnSigint` scopes in that case. * Returns: {any} the result of the very last statement executed in the script.