From 3b11b64719de73a85026ab9e2ec3179c0417c444 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 --- 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 80914c0ab729b5..e6796b4c0fb702 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. @@ -882,7 +882,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. @@ -1086,7 +1086,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.