Bug 1842773 - Part 5: Add ArrayBuffer.prototype.{maxByteLength,resizable} getters...
commite425f711c2b346d62adfc3b2a1cda64dc0f29551
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)
tree80f474624c9c0cc6641272c07fe10e3a32d1997e
parentbe725e7088938ec996ed04b9de2b839331b7648c
Bug 1842773 - Part 5: Add ArrayBuffer.prototype.{maxByteLength,resizable} getters. r=sfink

Getters for `maxByteLength` or `resizable` simply read the corresponding slots.

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