-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Normative: Disallow primitives in GetIterator()
for async iterables
#3505
Comments
From what I can tell, The normative conventions are meant to apply as guiding principles for new features going forward. We did not expect them to be able to be applied retroactively to existing features like this. |
indeed, |
If only 1.a. of
On the topic of the normative conventions, it might be better to reject primitives in Stage 3 |
Effective at what? What are you trying to achieve? Consistency for how primitives are handled in async iterator taking positions? |
Main motivation is that we can prohibit prototype pollution for primitives such as |
Normative conversion have been approved for iterables that will no longer be converted from primitives (tc39/how-we-work#152). There is currently no specification for async iterable to be converted from primitives, and the Web IDL converter is currently working on allowing only objects (whatwg/webidl#1397).
I think it would be better to disallow primitives in
GetIterator()
for async iterables, since it will probably not cause break the web.The text was updated successfully, but these errors were encountered: