Skip to content

editorial: namespaceInstance ModuleNamespace IDL refactoring #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2025
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