You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 24, 2023. It is now read-only.
const buffer = new ArrayBuffer(0) is perfectly acceptable and is not a detached buffer (in particular buffer.slice() works, whereas for a detached buffer it throws an error).
The use case of an empty array buffer (including resizable), is simply to indicate there is no data in the buffer. (Compared with detaching, which implies that the buffer is gone and no longer usable).
The text was updated successfully, but these errors were encountered:
The explainer currently says that a length of zero always denotes a detached buffer, however this isn't true.
const buffer = new ArrayBuffer(0)
is perfectly acceptable and is not a detached buffer (in particularbuffer.slice()
works, whereas for a detached buffer it throws an error).The use case of an empty array buffer (including resizable), is simply to indicate there is no data in the buffer. (Compared with detaching, which implies that the buffer is gone and no longer usable).
The text was updated successfully, but these errors were encountered: