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
@@ -534,6 +537,14 @@ The verification of WebAssembly type requirements is deferred to the
534
537
1. [=asynchronously instantiate a WebAssembly module|Asynchronously instantiate the WebAssembly module=] |moduleObject| importing |importObject|, and return the result.
535
538
</div>
536
539
540
+
<div algorithm>
541
+
The <dfn method for="WebAssembly">moduleInstance(|namespace|)</dfn> method, when invoked, performs the following steps:
542
+
1. If |namespace| is not a [=is a Module Namespace exotic object=], [=throw=] a {{TypeError}} exception.
543
+
1. If |namespace|.\[[Module]] is not a [=WebAssembly Module Record=], [=throw=] a {{TypeError}} exception.
544
+
1. Let |module| be |namespace|.\[[Module]].
545
+
1. Return |module|.\[[Instance]].
546
+
</div>
547
+
537
548
Note: A follow-on streaming API is documented in the <a href="https://webassembly.github.io/spec/web-api/index.html">WebAssembly Web API</a>.
0 commit comments