Skip to content

Commit

Permalink
Update gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot committed Dec 19, 2024
1 parent afdc5f9 commit 92fec1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29340,7 +29340,7 @@ <h1><span class="secnum">16.2.1.9</span> FinishLoadingImportedModule ( <var>refe

<emu-clause id="sec-getmodulenamespace" type="abstract operation" aoid="GetModuleNamespace">
<h1><span class="secnum">16.2.1.10</span> GetModuleNamespace ( <var>module</var> )</h1>
<p>The abstract operation GetModuleNamespace takes argument <var>module</var> (an instance of a concrete subclass of <emu-xref href="#sec-abstract-module-records" id="_ref_8692"><a href="#sec-abstract-module-records">Module Record</a></emu-xref>) and returns a Module Namespace Object or <emu-const>empty</emu-const>. It retrieves the Module Namespace Object representing <var>module</var>'s exports, lazily creating it the first time it was requested, and storing it in <var>module</var>.<var class="field">[[Namespace]]</var> for future retrieval. It performs the following steps when called:</p>
<p>The abstract operation GetModuleNamespace takes argument <var>module</var> (an instance of a concrete subclass of <emu-xref href="#sec-abstract-module-records" id="_ref_8692"><a href="#sec-abstract-module-records">Module Record</a></emu-xref>) and returns a Module Namespace Object. It retrieves the Module Namespace Object representing <var>module</var>'s exports, lazily creating it the first time it was requested, and storing it in <var>module</var>.<var class="field">[[Namespace]]</var> for future retrieval. It performs the following steps when called:</p>

<emu-alg><ol><li><emu-xref href="#assert" id="_ref_8693"><a href="#assert">Assert</a></emu-xref>: If <var>module</var> is a <emu-xref href="#cyclic-module-record" id="_ref_8694"><a href="#cyclic-module-record">Cyclic Module Record</a></emu-xref>, then <var>module</var>.<var class="field">[[Status]]</var> is not <emu-const>new</emu-const> or <emu-const>unlinked</emu-const>.</li><li>Let <var>namespace</var> be <var>module</var>.<var class="field">[[Namespace]]</var>.</li><li>If <var>namespace</var> is <emu-const>empty</emu-const>, then<ol><li>Let <var>exportedNames</var> be <var>module</var>.GetExportedNames().</li><li>Let <var>unambiguousNames</var> be a new empty <emu-xref href="#sec-list-and-record-specification-type" id="_ref_8695"><a href="#sec-list-and-record-specification-type">List</a></emu-xref>.</li><li>For each element <var>name</var> of <var>exportedNames</var>, do<ol><li>Let <var>resolution</var> be <var>module</var>.ResolveExport(<var>name</var>).</li><li>If <var>resolution</var> is a <emu-xref href="#resolvedbinding-record" id="_ref_8696"><a href="#resolvedbinding-record">ResolvedBinding Record</a></emu-xref>, append <var>name</var> to <var>unambiguousNames</var>.</li></ol></li><li>Set <var>namespace</var> to <emu-xref aoid="ModuleNamespaceCreate" id="_ref_8697"><a href="#sec-modulenamespacecreate">ModuleNamespaceCreate</a></emu-xref>(<var>module</var>, <var>unambiguousNames</var>).</li></ol></li><li>Return <var>namespace</var>.</li></ol></emu-alg>
<emu-note><span class="note">Note</span><div class="note-contents">
Expand Down
2 changes: 1 addition & 1 deletion multipage/ecmascript-language-scripts-and-modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@ <h1><span class="secnum">16.2.1.9</span> FinishLoadingImportedModule ( <var>refe

<emu-clause id="sec-getmodulenamespace" type="abstract operation" aoid="GetModuleNamespace">
<h1><span class="secnum">16.2.1.10</span> GetModuleNamespace ( <var>module</var> )</h1>
<p>The abstract operation GetModuleNamespace takes argument <var>module</var> (an instance of a concrete subclass of <emu-xref href="#sec-abstract-module-records" id="_ref_8692"><a href="ecmascript-language-scripts-and-modules.html#sec-abstract-module-records">Module Record</a></emu-xref>) and returns a Module Namespace Object or <emu-const>empty</emu-const>. It retrieves the Module Namespace Object representing <var>module</var>'s exports, lazily creating it the first time it was requested, and storing it in <var>module</var>.<var class="field">[[Namespace]]</var> for future retrieval. It performs the following steps when called:</p>
<p>The abstract operation GetModuleNamespace takes argument <var>module</var> (an instance of a concrete subclass of <emu-xref href="#sec-abstract-module-records" id="_ref_8692"><a href="ecmascript-language-scripts-and-modules.html#sec-abstract-module-records">Module Record</a></emu-xref>) and returns a Module Namespace Object. It retrieves the Module Namespace Object representing <var>module</var>'s exports, lazily creating it the first time it was requested, and storing it in <var>module</var>.<var class="field">[[Namespace]]</var> for future retrieval. It performs the following steps when called:</p>

<emu-alg><ol><li><emu-xref href="#assert" id="_ref_8693"><a href="notational-conventions.html#assert">Assert</a></emu-xref>: If <var>module</var> is a <emu-xref href="#cyclic-module-record" id="_ref_8694"><a href="ecmascript-language-scripts-and-modules.html#cyclic-module-record">Cyclic Module Record</a></emu-xref>, then <var>module</var>.<var class="field">[[Status]]</var> is not <emu-const>new</emu-const> or <emu-const>unlinked</emu-const>.</li><li>Let <var>namespace</var> be <var>module</var>.<var class="field">[[Namespace]]</var>.</li><li>If <var>namespace</var> is <emu-const>empty</emu-const>, then<ol><li>Let <var>exportedNames</var> be <var>module</var>.GetExportedNames().</li><li>Let <var>unambiguousNames</var> be a new empty <emu-xref href="#sec-list-and-record-specification-type" id="_ref_8695"><a href="ecmascript-data-types-and-values.html#sec-list-and-record-specification-type">List</a></emu-xref>.</li><li>For each element <var>name</var> of <var>exportedNames</var>, do<ol><li>Let <var>resolution</var> be <var>module</var>.ResolveExport(<var>name</var>).</li><li>If <var>resolution</var> is a <emu-xref href="#resolvedbinding-record" id="_ref_8696"><a href="ecmascript-language-scripts-and-modules.html#resolvedbinding-record">ResolvedBinding Record</a></emu-xref>, append <var>name</var> to <var>unambiguousNames</var>.</li></ol></li><li>Set <var>namespace</var> to <emu-xref aoid="ModuleNamespaceCreate" id="_ref_8697"><a href="ordinary-and-exotic-objects-behaviours.html#sec-modulenamespacecreate">ModuleNamespaceCreate</a></emu-xref>(<var>module</var>, <var>unambiguousNames</var>).</li></ol></li><li>Return <var>namespace</var>.</li></ol></emu-alg>
<emu-note><span class="note">Note</span><div class="note-contents">
Expand Down

0 comments on commit 92fec1b

Please sign in to comment.