Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 36edef5

Browse files
Ms2gerlittledan
authored andcommitted
[js-api] Editorial: Clarify parallel execution.
1 parent db5be4c commit 36edef5

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

document/js-api/index.bs

+7-6
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,13 @@ A {{Module}} object represents a single WebAssembly module. Each {{Module}} obje
300300
To <dfn>asynchronously compile a WebAssembly module</dfn> from source bytes |bytes|, using optional [=task source=] |taskSource|, perform the following steps:
301301

302302
1. Let |promise| be [=a new promise=].
303-
1. In parallel, [=compile a WebAssembly module|compile the WebAssembly module=] |bytes| and store the result as |module|.
304-
1. When the above operation completes, [=queue a task=] to perform the following steps. If |taskSource| was provided, queue the task on that task source.
305-
1. If |module| is [=error=], reject |promise| with a {{CompileError}} exception.
306-
1. Otherwise,
307-
1. [=Construct a WebAssembly module object=] from |module| and |bytes|, and let |moduleObject| be the result.
308-
1. [=Resolve=] |promise| with |moduleObject|.
303+
1. Run the following steps [=in parallel=]:
304+
1. [=compile a WebAssembly module|Compile the WebAssembly module=] |bytes| and store the result as |module|.
305+
1. [=Queue a task=] to perform the following steps. If |taskSource| was provided, queue the task on that task source.
306+
1. If |module| is [=error=], reject |promise| with a {{CompileError}} exception.
307+
1. Otherwise,
308+
1. [=Construct a WebAssembly module object=] from |module| and |bytes|, and let |moduleObject| be the result.
309+
1. [=Resolve=] |promise| with |moduleObject|.
309310
1. Return |promise|.
310311
</div>
311312

0 commit comments

Comments
 (0)