Skip to content

Commit a266e5c

Browse files
committed
Turning explicit what happens on non-string element case for 'exports'
1 parent 1f54239 commit a266e5c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

spec.emu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,9 @@ contributors: Nicolò Ribaudo
240240
1. <ins>Else if _next_ is not a String, then</ins>
241241
1. <ins>Let _error_ be ThrowCompletion(a newly created *TypeError* object).</ins>
242242
1. <ins>Let _closeResult_ be Completion(IteratorClose(_iteratorRecord_, _error_)).</ins>
243-
1. <ins>IfAbruptRejectPromise(_closeResult_, _promiseCapability_).</ins>
243+
1. <ins>Assert: _closeResult_ and _error_ are the same Completion Record.</ins>
244+
1. <ins>Perform ! Call(_promiseCapability_.[[Reject]], *undefined*, « _error_.[[Value]] »).</ins>
245+
1. <ins>Return _promiseCapability_.[[Promise]].</ins>
244246
1. <ins>Else if _names_ does not contain _next_, then</ins>
245247
1. <ins>Append _next_ to _names_.</ins>
246248
1. <ins>Set _importedNames_ to _names_.</ins>

0 commit comments

Comments
 (0)