Skip to content

Commit ce8a33c

Browse files
authored
Merge pull request #111 from WebAssembly/namespace-instance
editorial: namespaceInstance ModuleNamespace IDL refactoring
2 parents aed7081 + 84dc675 commit ce8a33c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

document/js-api/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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]].

0 commit comments

Comments
 (0)