Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements normative changes for closing async-from-sync iterators #230

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ioannad
Copy link

@ioannad ioannad commented Dec 13, 2023

as per ecma262 PR2600: tc39/ecma262#2600

Copy link
Contributor

@ExE-Boss ExE-Boss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: excess empty lines:

src/abstract-ops/iterator-operations.mts Outdated Show resolved Hide resolved
src/intrinsics/AsyncFromSyncIteratorPrototype.mts Outdated Show resolved Hide resolved
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
@ioannad
Copy link
Author

ioannad commented Jan 9, 2024

@ExE-Boss thank you for the review!

src/abstract-ops/iterator-operations.mts Outdated Show resolved Hide resolved
src/abstract-ops/iterator-operations.mts Outdated Show resolved Hide resolved
// a. Let closeIterator be a new Abstract Closure with parameters (error) that captures syncIteratorRecord and performs the following steps when called:
const closeIterator = ([error = Value.undefined]) => {
// i. Return ? IteratorClose(syncIteratorRecord, ThrowCompletion(error)).
return Q(IteratorClose(syncIteratorRecord, ThrowCompletion(error)));

This comment was marked as resolved.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Co-authored-by: Nicolò Ribaudo <hello@nicr.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants