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 {
321
321
Promise<Instance> instantiate(
322
322
Module moduleObject, optional object importObject);
323
323
324
- Instance namespaceInstance(ModuleNamespace moduleNamespace);
324
+ Instance namespaceInstance(object moduleNamespace);
325
325
};
326
326
</pre>
327
327
@@ -543,7 +543,7 @@ Note: A follow-on streaming API is documented in the <a href="https://webassembl
543
543
544
544
<div algorithm>
545
545
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 .
547
547
1. If |namespace|.\[[Module]] is not a [=WebAssembly Module Record=] , [=throw=] a {{TypeError}} exception.
548
548
1. Let |module| be |namespace|.\[[Module]] .
549
549
1. Return |module|.\[[Instance]] .
You can’t perform that action at this time.
0 commit comments