Commit fced162
committed
Reject out-of-range limits in Iterator.prototype.take/drop
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.1 parent 034097c commit fced162
1 file changed
Lines changed: 8 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45387 | 45387 | | |
45388 | 45388 | | |
45389 | 45389 | | |
45390 | | - | |
45391 | | - | |
45392 | | - | |
45393 | | - | |
45394 | | - | |
45395 | | - | |
45396 | | - | |
| 45390 | + | |
| 45391 | + | |
45397 | 45392 | | |
45398 | | - | |
45399 | | - | |
45400 | | - | |
45401 | | - | |
45402 | | - | |
45403 | | - | |
45404 | | - | |
45405 | | - | |
45406 | | - | |
45407 | | - | |
45408 | | - | |
45409 | | - | |
45410 | | - | |
45411 | | - | |
45412 | | - | |
| 45393 | + | |
| 45394 | + | |
| 45395 | + | |
| 45396 | + | |
45413 | 45397 | | |
| 45398 | + | |
| 45399 | + | |
45414 | 45400 | | |
45415 | 45401 | | |
45416 | 45402 | | |
| |||
0 commit comments