🏠 New in Low Baseline Support: Resizable buffers
July 9, 2024
caniuse · mdn · [spec]([‘https://tc39.es/ecma262/multipage/structured-data.html#sec-get-arraybuffer.prototype.resizable’, ‘https://tc39.es/ecma262/multipage/structured-data.html#sec-get-sharedarraybuffer.prototype.growable’])
The resize() method of an ArrayBuffer and the grow() method of a SharedArrayBuffer, constructed with the maxByteLength option, changes the size of the buffer in place.
Source features
javascript.builtins.ArrayBuffer.ArrayBuffer.maxByteLength_option[mdn]javascript.builtins.ArrayBuffer.maxByteLength[mdn]javascript.builtins.ArrayBuffer.resizable[mdn]javascript.builtins.ArrayBuffer.resize[mdn]javascript.builtins.SharedArrayBuffer.SharedArrayBuffer.maxByteLength_option[mdn]javascript.builtins.SharedArrayBuffer.grow[mdn]javascript.builtins.SharedArrayBuffer.growable[mdn]javascript.builtins.SharedArrayBuffer.maxByteLength[mdn]