Implement changes for "avoid mostly-redundant await
in async yield*
"
#3619
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These are updates for tc39/ecma262#2819.
I made the relevant modification to engine262 in a local branch, ran all of test262, and only found one test whose behavior needed to change, which was exercising the number of ticks implied by
yield*
in an async generator. This PR modifies that test and also adds an explicit test for thatyield*
does not perform unwrapping of the inner value.I recommend reviewing commits individually - in particular, the first commit only updates the existing test's
info
to match the current spec, which is then modified to match tc39/ecma262#2819 in the second commit. It's hard to see the change otherwise.cc @anba who wrote the test which is being updated.