Skip to content

Reject out-of-range limits in Iterator.prototype.take/drop - #1618

Merged
saghul merged 2 commits into
masterfrom
update-test262
Jul 30, 2026
Merged

Reject out-of-range limits in Iterator.prototype.take/drop#1618
saghul merged 2 commits into
masterfrom
update-test262

Conversation

@saghul

@saghul saghul commented Jul 30, 2026

Copy link
Copy Markdown
Contributor
  • Update test262
  • Reject out-of-range limits in Iterator.prototype.take/drop

saghul added 2 commits July 30, 2026 09:32
test262 now enforces the normative change adding step 7 to both helpers: if
numLimit is finite and greater than 2**53 - 1, throw a RangeError after
closing the underlying iterator.
@saghul
saghul merged commit fced162 into master Jul 30, 2026
128 checks passed
@saghul
saghul deleted the update-test262 branch July 30, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants