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
1. Perform ! Call(_promiseCapability_.[[Reject]], *undefined*, « a newly created *TypeError* object »).
@@ -221,7 +222,31 @@ contributors: Nicolò Ribaudo
221
222
1. Perform ! Call(_promiseCapability_.[[Reject]], *undefined*, « a newly created *TypeError* object »).
222
223
1. Return _promiseCapability_.[[Promise]].
223
224
1. Sort _attributes_ according to the lexicographic order of their [[Key]] field, treating the value of each such field as a sequence of UTF-16 code unit values. NOTE: This sorting is observable only in that hosts are prohibited from changing behaviour based on the order in which attributes are enumerated.
224
-
1. Let _moduleRequest_ be a new ModuleRequest Record { [[Specifier]]: _specifierString_, [[Attributes]]: _attributes_, [[Phase]]: _phase_, <ins>[[ImportedNames]]: ~all~</ins> }.
225
+
1. <ins>Let _exports_ be Completion(Get(_options_, *"exports"*)).</ins>
1. <ins>Else if _names_ does not contain _next_, then</ins>
247
+
1. <ins>Append _next_ to _names_.</ins>
248
+
1. <ins>Set _importedNames_ to _names_.</ins>
249
+
1. Let _moduleRequest_ be a new ModuleRequest Record { [[Specifier]]: _specifierString_, [[Attributes]]: _attributes_, [[Phase]]: _phase_, <ins>[[ImportedNames]]: _importedNames_</ins> }.
1. Let _loadPromise_ be _module_.LoadRequestedModules(<ins>~all~</ins>).
272
+
1. Let _loadPromise_ be _module_.LoadRequestedModules(<ins>_importedNames_</ins>).
247
273
1. Let _rejectedClosure_ be a new Abstract Closure with parameters (_reason_) that captures _promiseCapability_ and performs the following steps when called:
1. Let _onRejected_ be CreateBuiltinFunction(_rejectedClosure_, 1, *""*, « »).
251
-
1. Let _linkAndEvaluateClosure_ be a new Abstract Closure with no parameters that captures _module_, _promiseCapability_, _phase_ and _onRejected_ and performs the following steps when called:
252
-
1. Let _link_ be Completion(_module_.Link(<ins>~all~</ins>)).
277
+
1. Let _linkAndEvaluateClosure_ be a new Abstract Closure with no parameters that captures _module_, _promiseCapability_, _phase_<ins>, _importedNames_</ins> and _onRejected_ and performs the following steps when called:
278
+
1. Let _link_ be Completion(_module_.Link(<ins>_importedNames_</ins>)).
1. Let _fulfilledClosure_ be a new Abstract Closure with no parameters that captures _module_, _phase_, and _promiseCapability_ and performs the following steps when called:
257
-
1. Let _namespace_ be GetModuleNamespace(_module_, _phase_, <ins>~all~</ins>).
282
+
1. <ins>If _importedNames_ is a List of Strings, then</ins>
283
+
1. <ins>For each String _name_ of _importedNames_, do</ins>
284
+
1. <ins>Let _resolvable_ be Completion(EnsureResolvableBinding(_module_, _name_, ~disallow-ambiguous~)).</ins>
285
+
1. <ins>If _resolvable_ is an abrupt completion, then</ins>
286
+
1. <ins>Perform ! Call(_promiseCapability_.[[Reject]], *undefined*, « a newly created *ReferenceError* object »).</ins>
287
+
1. <ins>Return ~unused~.</ins>
288
+
1. Let _fulfilledClosure_ be a new Abstract Closure with no parameters that captures _module_, _phase_, <ins>_importedNames_,</ins> and _promiseCapability_ and performs the following steps when called:
289
+
1. Let _namespace_ be GetModuleNamespace(_module_, _phase_, <ins>_importedNames_</ins>).
0 commit comments