Bug 1842773 - Part 21: Throw for out-of-bounds in (PossiblyWrapped)TypedArrayLength...
commit8aeb8c51088b75e20dca3729828378abdf241b78
authorAndré Bargull <andre.bargull@gmail.com>
Thu, 25 Jan 2024 15:49:50 +0000 (25 15:49 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Thu, 25 Jan 2024 15:49:50 +0000 (25 15:49 +0000)
treee90bb1f98c5b6f194427b97c499a07714b5264c0
parentbcc1d64a780590beaff16ce06d0fd69878484b82
Bug 1842773 - Part 21: Throw for out-of-bounds in (PossiblyWrapped)TypedArrayLength intrinsics. r=sfink,jandem

Throw a TypeError for out-of-bounds, but keep returning zero for detached buffers
to match the inlined JIT code.

Differential Revision: https://phabricator.services.mozilla.com/D183338
js/src/vm/SelfHosting.cpp