File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ namespace WebAssembly {
321321 Promise<Instance> instantiate(
322322 Module moduleObject, optional object importObject);
323323
324- Instance namespaceInstance(ModuleNamespace moduleNamespace);
324+ Instance namespaceInstance(object moduleNamespace);
325325};
326326</pre>
327327
@@ -543,7 +543,7 @@ Note: A follow-on streaming API is documented in the <a href="https://webassembl
543543
544544<div algorithm>
545545 The <dfn method for="WebAssembly">namespaceInstance(|namespace|)</dfn> method, when invoked, performs the following steps:
546- 1. Assert: |namespace| is a [=Module Namespace exotic object=] .
546+ 1. If |namespace| is not a [=Module Namespace exotic object=] with a \ [[Module]] internal slot, [=throw=] a {{TypeError}} exception .
547547 1. If |namespace|.\[[Module]] is not a [=WebAssembly Module Record=] , [=throw=] a {{TypeError}} exception.
548548 1. Let |module| be |namespace|.\[[Module]] .
549549 1. Return |module|.\[[Instance]] .
You can’t perform that action at this time.
0 commit comments