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

Update 'Creating a sequence from an iterable' to use new iterator AOs #1409

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Update 'Creating a sequence from an iterable' to use new iterator AOs #1409

merged 1 commit into from
Jun 10, 2024

Conversation

linusg
Copy link
Member

@linusg linusg commented Jun 8, 2024

GetIterator no longer exists in this form (it tries to obtain the method when passed sync or async), and IteratorStep/IteratorValue have been merged into a single AO for convenience.


Preview | Diff

@linusg linusg changed the title Update 'Creating a sequence from an iterable' to use update iterator AOs Update 'Creating a sequence from an iterable' to use new iterator AOs Jun 8, 2024
1. Let |next| be [=?=] <a abstract-op>IteratorStep</a>(|iter|).
1. If |next| is <emu-val>false</emu-val>,
1. Let |next| be [=?=] <a abstract-op>IteratorStepValue</a>(|iteratorRecord|).
1. If |next| is <emu-const>done</emu-const>,
Copy link
Member

Choose a reason for hiding this comment

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

Should this be uppercase DONE as is done in JS?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, that's a visual choice they apply via CSS in the default ecmarkup stylesheet:

https://github.com/tc39/ecmarkup/blob/c0c4f82924077eea14d95f1eb6bd067239749554/css/elements.css#L252-L258

image

Copy link
Member

Choose a reason for hiding this comment

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

Ooh weird. Thanks!

@annevk annevk merged commit f2b124e into whatwg:main Jun 10, 2024
2 checks passed
@linusg linusg deleted the iterators branch June 10, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants