Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 1a62585

Browse files
authored
fix completion types in built-in async functions (#241)
1 parent 92087e1 commit 1a62585

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec.html

+2
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,8 @@ <h1>
11341134
1. <ins>Else,</ins>
11351135
1. <ins>Assert: _asyncBody_ is an Abstract Closure with no parameters.</ins>
11361136
1. <ins>Let _result_ be _asyncBody_().</ins>
1137+
1. <ins>If _result_ is a normal completion, then</ins>
1138+
1. <ins>Set _result_ to Completion Record { [[Type]]: ~return~, [[Value]]: _result_.[[Value]], [[Target]]: ~empty~ }.</ins>
11371139
1. <del>Let _result_ be the result of evaluating _asyncBody_.</del>
11381140
1. Assert: If we return here, the async function either threw an exception or performed an implicit or explicit return; all awaiting is done.
11391141
1. Remove _asyncContext_ from the execution context stack and restore the execution context that is at the top of the execution context stack as the running execution context.

0 commit comments

Comments
 (0)