Skip to content

Commit 61e6abd

Browse files
committed
moduleInstance -> namespaceInstance
1 parent 3e70ac4 commit 61e6abd

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
@@ -320,7 +320,7 @@ namespace WebAssembly {
320320
Promise<Instance> instantiate(
321321
Module moduleObject, optional object importObject);
322322

323-
Instance moduleInstance(ModuleNamespace namespace);
323+
Instance namespaceInstance(ModuleNamespace namespace);
324324
};
325325
</pre>
326326

@@ -538,7 +538,7 @@ The verification of WebAssembly type requirements is deferred to the
538538
</div>
539539

540540
<div algorithm>
541-
The <dfn method for="WebAssembly">moduleInstance(|namespace|)</dfn> method, when invoked, performs the following steps:
541+
The <dfn method for="WebAssembly">namespaceInstance(|namespace|)</dfn> method, when invoked, performs the following steps:
542542
1. If |namespace| is not a [=is a Module Namespace exotic object=], [=throw=] a {{TypeError}} exception.
543543
1. If |namespace|.\[[Module]] is not a [=WebAssembly Module Record=], [=throw=] a {{TypeError}} exception.
544544
1. Let |module| be |namespace|.\[[Module]].

0 commit comments

Comments
 (0)