Commit e06d61d
committed
[MERGE #6184 @boingoing] Assert in JavascriptArray::EntryReverse when length > Uint32Max
Merge pull request #6184 from boingoing:6179
Turns out it's pretty easy to make the length property of a TypedArray greater than Uint32Max. Passing a TypedArray object like that to Array#reverse hits an assert verifying the length is <= Uint32Max.
This is a valid situation to get into, though, so instead of asserting we should fall into the object (non-Array, non-TypedArray) case and use the slow path which supports larger lengths.
Fixes #6179File tree
3 files changed
+69
-4
lines changed- lib/Runtime/Library
- test/Bugs
3 files changed
+69
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5533 | 5533 | | |
5534 | 5534 | | |
5535 | 5535 | | |
5536 | | - | |
5537 | 5536 | | |
5538 | 5537 | | |
5539 | 5538 | | |
| |||
5624 | 5623 | | |
5625 | 5624 | | |
5626 | 5625 | | |
| 5626 | + | |
5627 | 5627 | | |
5628 | 5628 | | |
5629 | 5629 | | |
| |||
5774 | 5774 | | |
5775 | 5775 | | |
5776 | 5776 | | |
5777 | | - | |
| 5777 | + | |
5778 | 5778 | | |
5779 | | - | |
5780 | 5779 | | |
5781 | 5780 | | |
5782 | 5781 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
606 | 612 | | |
0 commit comments