-
Notifications
You must be signed in to change notification settings - Fork 470
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
Iterator Helpers #2818
Iterator Helpers #2818
Conversation
3000eb9
to
20bac2c
Compare
20bac2c
to
1c5476d
Compare
1c5476d
to
4ffa4b5
Compare
@jugglinmike this will likely be relevant to your efforts in 2021. Please feel free to revise in any way that you see fit. |
f36bc4b
to
05d528c
Compare
Dusting this off. Today I was able to run these tests with SpiderMonkey's iterator helpers feature enabled. Here's how:
My current results:
|
test/built-ins/AsyncIterator/prototype/asIndexedPairs/abrupt-iterator-get-next.js
Outdated
Show resolved
Hide resolved
test/built-ins/AsyncIterator/prototype/drop/abrupt-iterator-get-next-during-drop.js
Outdated
Show resolved
Hide resolved
@Ms2ger the proposal is now stage 3. Would anyone like to pick up this PR and update it to match the current state of the proposal? |
Do we want to use #3728? |
I've updated the tests in this branch to cover just the sync iterator helpers, as the async iterator helpers have been split into their own proposal (and demoted to stage 2). Next, I'll review the existing tests for completeness and update/add tests as necessary, then I'll add tests to cover the remaining helpers that were not yet covered. |
test/built-ins/Iterator/prototype/filter/get-return-method-throws.js
Outdated
Show resolved
Hide resolved
test/built-ins/Iterator/prototype/drop/get-return-method-throws.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are for the validation order change that got consensus yesterday.
test/built-ins/Iterator/prototype/drop/argument-effect-order.js
Outdated
Show resolved
Hide resolved
test/built-ins/Iterator/prototype/every/argument-effect-order.js
Outdated
Show resolved
Hide resolved
test/built-ins/Iterator/prototype/filter/argument-effect-order.js
Outdated
Show resolved
Hide resolved
Does https://github.com/tc39/test262/blob/main/test/built-ins/Object/prototype/toString/symbol-tag-non-str-builtin.js#L29 need to be updated as well, since |
aa33100
to
018f993
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Thanks for working on this, I'm glad to see it's being picked up! I didn't have time to go through the entire PR but here are some comments that occurred to me as I started reading at the top.
test/built-ins/Iterator/prototype/drop/limit-tonumber-throws.js
Outdated
Show resolved
Hide resolved
b61e47a
to
815b78e
Compare
1662936
to
f44bc81
Compare
54ccd77
to
03b56c5
Compare
Addressed feedback from @syg and rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests look good, all pass on my polyfill written close-to-spec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm definitely not going to have time to review this in the near future, but with positive reviews from Shu and Jordan I'm confident that we could merge it.
Before merging it would be good to figure out the ESMeta job's failure. I looked at the test it's complaining about and left a suggestion, but I'm not sure if that's really the cause.
@ptomato Tests are passing. |
https://github.com/tc39/proposal-iterator-helpers