iterator helpers: assert .return() not called when .next() throws by bakkot · Pull Request #5153 · tc39/test262 · GitHub
Skip to content

iterator helpers: assert .return() not called when .next() throws - #5153

Open
bakkot wants to merge 1 commit into
not-mask-return-throwfrom
iterator-protocol-violation-not-closed
Open

bakkot wants to merge 1 commit into
not-mask-return-throwfrom
iterator-protocol-violation-not-closed

Conversation

@bakkot

@bakkot bakkot commented Oct 19, 2026

Copy link
Copy Markdown
Member

Followup to #5152: while I was there I noticed that only chunks/windows/includes were asserting that .return() was not called in the case of a .next() that throws or returns a non-object; this expands that to the other helpers.

@bakkot
bakkot requested a review from a team as a code owner October 19, 2026 05:02
@github-actions

Copy link
Copy Markdown

@bakkot
bakkot added this pull request to stack #5154 October 19, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants