Bug 1842773 - Part 6: Add support to create resizable ArrayBuffers. r=sfink
commit5d9c63429037ce54ad4668e83aae17d0a3176ac7
authorAndré Bargull <andre.bargull@gmail.com>
Thu, 25 Jan 2024 15:49:44 +0000 (25 15:49 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Thu, 25 Jan 2024 15:49:44 +0000 (25 15:49 +0000)
tree86d03e04e262b7999c848ba07e5fe132ee2a83fd
parente425f711c2b346d62adfc3b2a1cda64dc0f29551
Bug 1842773 - Part 6: Add support to create resizable ArrayBuffers. r=sfink

In preparation for actually enabling the `ArrayBuffer` constructor to create
resizable ArrayBuffers, we need additional functions to pass through the
correct `JSClass` and adjust the memory reporting to use the correct number of
associated bytes.

Differential Revision: https://phabricator.services.mozilla.com/D183322
js/public/friend/ErrorNumbers.msg
js/src/vm/ArrayBufferObject.cpp
js/src/vm/ArrayBufferObject.h