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

Iterator Record [[NextMethod]] type incorrect #3033

Closed
michaelficarra opened this issue Mar 30, 2023 · 1 comment · Fixed by #3067
Closed

Iterator Record [[NextMethod]] type incorrect #3033

michaelficarra opened this issue Mar 30, 2023 · 1 comment · Fixed by #3067
Labels

Comments

@michaelficarra
Copy link
Member

The type of the [[NextMethod]] field of Iterator Records is declared to be "a function object", but in GetIterator, ForIn/OfHeadEvaluation, and CreateAsyncFromSyncIterator, we stick the result of Get(iterator, "next") directly into there without validating it. We should either update the type or check/throw before constructing the Iterator Record (this seems to require impossible normative changes).

@michaelficarra
Copy link
Member Author

The proposed normative change is a duplicate of #2903 and being considered at the next plenary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant