Bug 1842773 - Part 7: Support constructing resizable ArrayBuffers. r=sfink
commit8e6a95c4ae57daee35299b709b94a3feda79cbf2
authorAndré Bargull <andre.bargull@gmail.com>
Fri, 26 Jan 2024 08:17:35 +0000 (26 08:17 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Fri, 26 Jan 2024 08:17:35 +0000 (26 08:17 +0000)
tree5db3d018edb39fad4b8ab720d8e15b60a110417c
parent0778222a085ed8de30e58b385188bb49d493f027
Bug 1842773 - Part 7: Support constructing resizable ArrayBuffers. r=sfink

Update the ArrayBuffer constructor function to create resizable ArrayBuffers.
DataViews and TypedArrays don't yet support resizable ArrayBuffers, so they
throw when a resizable ArrayBuffer is used as the input.

Differential Revision: https://phabricator.services.mozilla.com/D183323
js/public/friend/ErrorNumbers.msg
js/src/builtin/DataViewObject.cpp
js/src/vm/ArrayBufferObject.cpp
js/src/vm/TypedArrayObject.cpp