File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ urlPrefix: https://tc39.github.io/ecma262/; spec: ECMASCRIPT
80
80
text: Cyclic Module Record; url: cyclic-module-record
81
81
text: GetMethod; url: sec-getmethod
82
82
text: ToBigInt64; url: #sec-tobigint64
83
+ text: Module Namespace exotic object; url: #sec-module-namespace-exotic-objects
83
84
type: abstract-op
84
85
text: CreateDataPropertyOrThrow; url: sec-createdatapropertyorthrow
85
86
text: CreateMethodProperty; url: sec-createmethodproperty
@@ -631,6 +632,7 @@ Note: Some implementations enforce a size limitation on |bytes|. Use of this API
631
632
interface Instance {
632
633
constructor(Module module, optional object importObject);
633
634
readonly attribute object exports;
635
+ static Instance namespaceInstance(ModuleNamespace moduleNamespace);
634
636
};
635
637
</pre>
636
638
@@ -648,6 +650,14 @@ Note: The use of this synchronous API is discouraged, as some implementations so
648
650
The getter of the <dfn attribute for="Instance">exports</dfn> attribute of {{Instance}} returns **this**.\[[Exports]] .
649
651
</div>
650
652
653
+ <div algorithm>
654
+ The <dfn method for="Instance">namespaceInstance(|namespace|)</dfn> method, when invoked, performs the following steps:
655
+ 1. Assert: |namespace| is a [=Module Namespace exotic object=] .
656
+ 1. If |namespace|.\[[Module]] is not a [=WebAssembly Module Record=] , [=throw=] a {{TypeError}} exception.
657
+ 1. Let |module| be |namespace|.\[[Module]] .
658
+ 1. Return |module|.\[[Instance]] .
659
+ </div>
660
+
651
661
<h3 id="memories">Memories</h3>
652
662
653
663
<pre class="idl">
You can’t perform that action at this time.
0 commit comments