Skip to content

add tests for "iterator helpers close receiver on argument validation failure"#4350

Merged
ptomato merged 3 commits intomainfrom
test-iterator-helper-argument-validation-closes
Feb 4, 2025
Merged

add tests for "iterator helpers close receiver on argument validation failure"#4350
ptomato merged 3 commits intomainfrom
test-iterator-helper-argument-validation-closes

Conversation

@bakkot
Copy link
Member

@bakkot bakkot commented Dec 15, 2024

Tests for tc39/ecma262#3467, which has consensus and is just waiting for tests.

No existing tests were invalidated as far as I can tell (presumably because if we'd thought to test this behavior then we'd have updated the proposal instead of needing the PR).

@bakkot bakkot requested a review from a team as a code owner December 15, 2024 05:14
Copy link
Contributor

@sosukesuzuki sosukesuzuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementing this normative change is likely to cause https://github.com/tc39/test262/blob/main/test/built-ins/Iterator/prototype/reduce/non-callable-reducer.js to start failing, because the underlying iterator will already be closed during the second call to reduce.

@bakkot
Copy link
Member Author

bakkot commented Jan 8, 2025

Thanks for the review @sosukesuzuki, addressed comments.

Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Two comments, but they apply to multiple files.

Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ptomato ptomato force-pushed the test-iterator-helper-argument-validation-closes branch from 652ac6c to 7722e98 Compare February 4, 2025 19:24
@ptomato ptomato merged commit d405213 into main Feb 4, 2025
15 checks passed
@ptomato ptomato deleted the test-iterator-helper-argument-validation-closes branch February 4, 2025 19:32
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.

3 participants