Extend the ArrayBuffer constructors to take an additional maximum length that allows in-place growth and shrinking of buffers. Similarly, SharedArrayBuffer is extended to take an additional maximum length that allows in-place growth.

Motivation

Allowing ArrayBuffers and SharedArrayBuffers to resize and grow allow for more efficient use, as currently resizing them requires copying. Additionally, WebAssembly linear memory can already resize, and this brings the same capability to JS.

Specification

Specification link


Specification currently under development in a Working Group

Status in Chromium

Blink>JavaScript>Language


In developer trial (Behind a flag) (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

  • Positive
  • Positive
  • No signals

Owners

Last updated on 2022-04-27