Bug 1842773 - Part 36: Rename ArrayBufferObject::MaxByteLength to ByteLengthLimit...
commitfc51bf1b87dd041a513cf8c9cd160de915133bc4
authorAndré Bargull <andre.bargull@gmail.com>
Thu, 25 Jan 2024 15:49:56 +0000 (25 15:49 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Thu, 25 Jan 2024 15:49:56 +0000 (25 15:49 +0000)
tree757b640aa9010f2cb839f1997ed49882d786bb5e
parent09cae9ab93ce93fdfc2fc4fcbb78df435fef5a3d
Bug 1842773 - Part 36: Rename ArrayBufferObject::MaxByteLength to ByteLengthLimit. r=sfink,nbp

Rename `MaxByteLength` to avoid confusion with the new `maxByteLength` slot for
resizable ArrayBuffers.

- Prefer "Limit" instead of "Max" because the latter could be misinterpreted to
  refer to `maxByteLength`, because it also includes the substring "max".

Differential Revision: https://phabricator.services.mozilla.com/D196312
15 files changed:
js/src/builtin/DataViewObject.cpp
js/src/builtin/TestingFunctions.cpp
js/src/ctypes/CTypes.cpp
js/src/jit/RangeAnalysis.cpp
js/src/jit/VMFunctions.cpp
js/src/shell/OSObject.cpp
js/src/vm/ArrayBufferObject.cpp
js/src/vm/ArrayBufferObject.h
js/src/vm/ArrayBufferObjectMaybeShared.cpp
js/src/vm/ArrayBufferViewObject.cpp
js/src/vm/SharedArrayObject.cpp
js/src/vm/StructuredClone.cpp
js/src/vm/TypedArrayObject.cpp
js/src/vm/TypedArrayObject.h
js/src/wasm/WasmMemory.cpp