You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
1. If length > 2^32 - 1, throw a RangeError exception.
Couple of issues:
Why is the length validated to be in a range much larger than the immediate next step allows in the first place?
Why TypeError and not RangeError - this seems to be inherited from Array.prototype.splice, which uses ArraySpeciesCreate and only passes actualDeleteCount as the length in the next step however
Is it intentional that depending on how much too large (i.e. above 2^32 - 1) the value is you'll get a different error type?