You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Earlier this year I made a request for clarification to the core-js project re: the behavior of that project's implementation of AsyncIterator and the helper APIs.
What it boiled down to: ix and JS built-in for await...of did what I expect while core-js didn't. See the following:
Earlier today the maintainer weighed in and pointed out that core-js is following the spec.
If/when Iterator Helpers makes it into ES202X, this subtle difference seems like it could be a cause for confusion, but there may be an aspect that I'm not appreciating. Do the maintainers of this project think it's better to align with a conceptually related spec (albeit a draft) or for this project to go its own way? Or maybe this is a problematic area in the spec and an issue should be raised with its authors? Thoughts?
The text was updated successfully, but these errors were encountered:
michaelsbradleyjr
changed the title
behavior in relation to spec fo Iterator Helpers
ix behavior in relation to spec for Iterator Helpers
Nov 5, 2020
My initial reaction is that it should be raised with the spec authors. I'm biased as a library maintainer but I expect it to be possible to implement forEach using for..of. I think I'd also expect the mechanics to be equivalent as a user. It's a big deal for libraries too because this will affect many methods, not just forEach. If the spec says that none of them can be implemented safely with for..of loops, then that's a huge headache.
Earlier this year I made a request for clarification to the core-js project re: the behavior of that project's implementation of
AsyncIterator
and the helper APIs.What it boiled down to:
ix
and JS built-infor await...of
did what I expect whilecore-js
didn't. See the following:Earlier today the maintainer weighed in and pointed out that
core-js
is following the spec.If/when Iterator Helpers makes it into ES202X, this subtle difference seems like it could be a cause for confusion, but there may be an aspect that I'm not appreciating. Do the maintainers of this project think it's better to align with a conceptually related spec (albeit a draft) or for this project to go its own way? Or maybe this is a problematic area in the spec and an issue should be raised with its authors? Thoughts?
The text was updated successfully, but these errors were encountered: