- From: ArnaudBienner <notifications@github.com>
- Date: Wed, 28 Oct 2026 03:49:07 -0700
- To: w3c/IndexedDB <IndexedDB@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 28 October 2026 10:49:11 UTC
ArnaudBienner left a comment (w3c/IndexedDB#509) Consensus from TPAC2026 was (@SteveBeckerMSFT correct me if I'm wrong) that there is no reason to forbid usage of resizable array buffers as keys. And that they shall be turned into a fixed-size array buffer. **Turns out we probably don't need a spec change after all.** Re-reading the spec to [convert a value to a key](https://w3c.github.io/IndexedDB/#convert-a-key-to-a-value), we have (for binary step): > 2. Let buffer be the result of executing the ECMAScript ArrayBuffer constructor with len. Note we only provide the `len` argument. So this calls [`ArrayBuffer`'s constructor](https://tc39.es/ecma262/#sec-arraybuffer-length) without `options` argument, which then calls [`AllocateArrayBuffer`](https://tc39.es/ecma262/#sec-allocatearraybuffer) with empty `requestedMaxByteLength` so this returns a regular (fixed size) `ArrayBuffer`. Because: > 2. If maxByteLength is present and maxByteLength is not empty, let allocatingResizableBuffer be true; else **let allocatingResizableBuffer be false**. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/IndexedDB/issues/509#issuecomment-6467004618 You are receiving this because you are subscribed to this thread. Message ID: <w3c/IndexedDB/issues/509/6467004618@github.com>
Received on Wednesday, 28 October 2026 10:49:11 UTC