Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Revert "Also unwrap returns"
Browse files Browse the repository at this point in the history
This reverts commit 0ff65fe.
  • Loading branch information
domenic committed Jun 6, 2017
1 parent 0ff65fe commit 79f698b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/abstract-operations.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ <h1>AsyncGeneratorStart ( _generator_, _generatorBody_ )</h1>
1. Assert: If we return here, the async generator either threw an exception or performed either an implicit or explicit return.
1. Remove _genContext_ 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.
1. Set _generator_.[[AsyncGeneratorState]] to `"completed"`.
1. If _result_ is an abrupt completion,
1. If _result_.[[Type]] is ~return~, then set _result_ to Await(_result_.[[Value]]).
1. If _result_.[[Type]] is now ~return~, return ! AsyncGeneratorResolve(_generator_, _result_.[[Value]], *true*).
1. Else, return ! AsyncGeneratorReject(_generator_, _result_.[[Value]]).
1. Else, return ! AsyncGeneratorResolve(_generator_, *undefined*, *true*).
1. If _result_ is a normal completion, let _resultValue_ be *undefined*.
1. Else,
1. Let _resultValue_ be _result_.[[Value]].
1. If _result_.[[Type]] is not ~return~, then
1. Return ! AsyncGeneratorReject(_generator_, _resultValue_).
1. Return ! AsyncGeneratorResolve(_generator_, _resultValue_, *true*).
1. Set _generator_.[[AsyncGeneratorContext]] to _genContext_.
1. Set _generator_.[[AsyncGeneratorState]] to `"suspendedStart"`.
1. Set _generator_.[[AsyncGeneratorQueue]] to a new empty List.
Expand Down Expand Up @@ -94,8 +95,7 @@ <h1>AsyncGeneratorResumeNext ( _generator_ )</h1>
1. Set _generator_.[[AsyncGeneratorState]] to `"completed"`.
1. Set _state_ to `"completed"`.
1. If _state_ is `"completed"`, then
1. If _completion_.[[Type]] is ~return~, then set _completion_ to Await(_completion_.[[Value]]).
1. If _completion_.[[Type]] is now ~return~, return ! AsyncGeneratorResolve(_generator_, _completion_.[[Value]], *true*).
1. If _completion_.[[Type]] is ~return~, then return ! AsyncGeneratorResolve(_generator_, _completion_.[[Value]], *true*).
1. Else, return ! AsyncGeneratorReject(_generator_, _completion_.[[Value]]).
1. Else if _state_ is `"completed"`, then return ! AsyncGeneratorResolve(_generator_, *undefined*, *true*).
1. Assert: _state_ is either `"suspendedStart"` or `"suspendedYield"`.
Expand Down

0 comments on commit 79f698b

Please sign in to comment.