You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: document/js-api/index.bs
+7-6
Original file line number
Diff line number
Diff line change
@@ -300,12 +300,13 @@ A {{Module}} object represents a single WebAssembly module. Each {{Module}} obje
300
300
To <dfn>asynchronously compile a WebAssembly module</dfn> from source bytes |bytes|, using optional [=task source=] |taskSource|, perform the following steps:
301
301
302
302
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.
0 commit comments