Bug 1842773 - Part 22: Validate length is in-bounds for TypedArray iterator methods...
commitf4e48d79c089e129cef49fd2990036e2155887da
authorAndré Bargull <andre.bargull@gmail.com>
Fri, 26 Jan 2024 08:17:41 +0000 (26 08:17 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Fri, 26 Jan 2024 08:17:41 +0000 (26 08:17 +0000)
treeb65422dd7f5883837f4cb4f2763649c0ffab583d
parent8511ee0e35d017a91d50062c40cded9e5733b3cb
Bug 1842773 - Part 22: Validate length is in-bounds for TypedArray iterator methods. r=sfink

Simply calls `PossiblyWrappedTypedArrayLength` which throws an error for
out-of-bounds TypedArrays.

Differential Revision: https://phabricator.services.mozilla.com/D183339
js/src/builtin/TypedArray.js