Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions document/js-api/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ namespace WebAssembly {
Promise<Instance> instantiate(
Module moduleObject, optional object importObject);

Instance namespaceInstance(ModuleNamespace moduleNamespace);
Instance namespaceInstance(object moduleNamespace);
};
</pre>

Expand Down Expand Up @@ -543,7 +543,7 @@ Note: A follow-on streaming API is documented in the <a href="https://webassembl

<div algorithm>
The <dfn method for="WebAssembly">namespaceInstance(|namespace|)</dfn> method, when invoked, performs the following steps:
1. Assert: |namespace| is a [=Module Namespace exotic object=].
1. If |namespace| is not a [=Module Namespace exotic object=] with a \[[Module]] internal slot, [=throw=] a {{TypeError}} exception.
1. If |namespace|.\[[Module]] is not a [=WebAssembly Module Record=], [=throw=] a {{TypeError}} exception.
1. Let |module| be |namespace|.\[[Module]].
1. Return |module|.\[[Instance]].
Expand Down