You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -104,7 +104,7 @@ contributors: Guy Bedford, Marco Ippolito
104
104
<dd>a module namespace exotic object _O_</dd>
105
105
</dl>
106
106
<emu-alg>
107
-
1. If <del>_P_ is a Symbol</del>IsSymbolLikeNamespaceKey(_P_, _O_), return ! OrdinaryDefineOwnProperty(_O_, _P_, _Desc_).
107
+
1. If IsSymbolLikeNamespaceKey(_P_, _O_), return ! OrdinaryDefineOwnProperty(_O_, _P_, _Desc_).
108
108
1. Let _current_ be ? _O_.[[GetOwnProperty]](_P_).
109
109
1. NOTE: If _O_.[[Deferred]] is *true*, the step above will ensure that the module is evaluated.
110
110
1. If _current_ is *undefined*, return *false*.
@@ -128,8 +128,8 @@ contributors: Guy Bedford, Marco Ippolito
128
128
<dd>a module namespace exotic object _O_</dd>
129
129
</dl>
130
130
<emu-alg>
131
-
1. If <del>_P_ is a Symbol</del>IsSymbolLikeNamespaceKey(_P_, _O_), return ! OrdinaryHasProperty(_O_, _P_).
132
-
1. Let _exports_ be <del>_O_.[[Exports]]</del>? GetModuleExportsList(_O_).
131
+
1. If IsSymbolLikeNamespaceKey(_P_, _O_), return ! OrdinaryHasProperty(_O_, _P_).
132
+
1. Let _exports_ be ? GetModuleExportsList(_O_).
133
133
1. If _exports_ contains _P_, return *true*.
134
134
1. Return *false*.
135
135
</emu-alg>
@@ -147,8 +147,8 @@ contributors: Guy Bedford, Marco Ippolito
147
147
<dd>a module namespace exotic object _O_</dd>
148
148
</dl>
149
149
<emu-alg>
150
-
1. If <del>_P_ is a Symbol</del>IsSymbolLikeNamespaceKey(_P_, _O_), return ! OrdinaryGet(_O_, _P_, _Receiver_).
151
-
1. Let _exports_ be <del>_O_.[[Exports]]</del>? GetModuleExportsList(_O_).
150
+
1. If IsSymbolLikeNamespaceKey(_P_, _O_), return ! OrdinaryGet(_O_, _P_, _Receiver_).
151
+
1. Let _exports_ be ? GetModuleExportsList(_O_).
152
152
1. If _exports_ does not contain _P_, return *undefined*.
153
153
1. Let _m_ be _O_.[[Module]].
154
154
1. Let _binding_ be _m_.ResolveExport(_P_).
@@ -195,8 +195,8 @@ contributors: Guy Bedford, Marco Ippolito
195
195
<dd>a module namespace exotic object _O_</dd>
196
196
</dl>
197
197
<emu-alg>
198
-
1. If <del>_P_ is a Symbol</del>IsSymbolLikeNamespaceKey(_P_, _O_), return ! OrdinaryDelete(_O_, _P_).
199
-
1. Let _exports_ be <del>_O_.[[Exports]]</del>? GetModuleExportsList(_O_).
198
+
1. If IsSymbolLikeNamespaceKey(_P_, _O_), return ! OrdinaryDelete(_O_, _P_).
199
+
1. Let _exports_ be ? GetModuleExportsList(_O_).
200
200
1. If _exports_ contains _P_, return *false*.
201
201
1. Return *true*.
202
202
</emu-alg>
@@ -209,7 +209,7 @@ contributors: Guy Bedford, Marco Ippolito
209
209
<dd>a module namespace exotic object _O_</dd>
210
210
</dl>
211
211
<emu-alg>
212
-
1. Let _exports_ be <del>_O_.[[Exports]]</del>? GetModuleExportsList(_O_).
212
+
1. Let _exports_ be ? GetModuleExportsList(_O_).
213
213
1. If _O_.[[Deferred]] is *true*, and _exports_ contains *"then"*, then
214
214
1. Set _exports_ to a copy of _exports_.
215
215
1. Remove *"then"* from _exports_.
@@ -231,14 +231,12 @@ contributors: Guy Bedford, Marco Ippolito
231
231
<dd>It is used to specify the creation of new module namespace exotic objects.</dd>
232
232
</dl>
233
233
<emu-alg>
234
-
1. <del>Assert: _module_.[[Namespace]] is ~empty~.</del>
235
234
1. Let _internalSlotsList_ be the internal slots listed in <emu-xref href="#table-internal-slots-of-module-namespace-exotic-objects"></emu-xref>.
236
235
1. Let _M_ be MakeBasicObject(_internalSlotsList_).
237
236
1. Set _M_'s essential internal methods to the definitions specified in <emu-xref href="#sec-module-namespace-exotic-objects"></emu-xref>.
238
237
1. Set _M_.[[Module]] to _module_.
239
238
1. [declared="comparefn"] Let _sortedExports_ be a List whose elements are the elements of _exports_ ordered as if an Array of the same values had been sorted using %Array.prototype.sort% using *undefined* as _comparefn_.
240
239
1. Set _M_.[[Exports]] to _sortedExports_.
241
-
1. <del>Create own properties of _M_ corresponding to the definitions in <emu-xref href="#sec-module-namespace-objects"></emu-xref>.</del>
242
240
1. If _phase_ is ~defer~, then
243
241
1. Assert: _module_.[[DeferredNamespace]] is ~empty~.
244
242
1. Set _module_.[[DeferredNamespace]] to _M_.
@@ -327,8 +325,6 @@ contributors: Guy Bedford, Marco Ippolito
1. <del>Let _evaluatePromise_ be _module_.Evaluate().</del>
486
463
1. Let _fulfilledClosure_ be a new Abstract Closure with no parameters that captures _module_, _phase_, and _promiseCapability_ and performs the following steps when called:
487
464
1. Let _namespace_ be GetModuleNamespace(_module_, _phase_).
<p><del>A Module Namespace Object is a module namespace exotic object that provides runtime property-based access to a module's exported bindings. There is no constructor function for Module Namespace Objects. Instead, such an object is created for each module that is imported by an |ImportDeclaration| that contains a |NameSpaceImport|.</del></p>
1930
-
<p><del>In addition to the properties specified in <emu-xref href="#sec-module-namespace-exotic-objects"></emu-xref> each Module Namespace Object has the following own property:</del></p>
0 commit comments