Bug 1842773 - Part 8: Implement ArrayBuffer.prototype.resize method. r=sfink
commitc1bbdda3569fd920a01f5b89085fa38e0538672f
authorAndré Bargull <andre.bargull@gmail.com>
Thu, 25 Jan 2024 15:49:45 +0000 (25 15:49 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Thu, 25 Jan 2024 15:49:45 +0000 (25 15:49 +0000)
tree374f1aae4e758e55fee74ea37b4e3d6489570c34
parentaf39d76cc8033bcfaaddaf01a32c341dc95c86b7
Bug 1842773 - Part 8: Implement ArrayBuffer.prototype.resize method. r=sfink

Resizing simply adjusts the byte-length slot and sets the memory to
zero if the array is shrunk.

Differential Revision: https://phabricator.services.mozilla.com/D183324
js/src/vm/ArrayBufferObject.cpp
js/src/vm/ArrayBufferObject.h