[whatwg/webidl] Offer [[ArrayBufferDetachKey]] abstraction? (Issue #1375)

### What is the issue with the Web IDL Standard?

Apparently the Wasm JS API and WebGPU both poke directly at ArrayBuffer internals. That does not seem entirely ideal.

- https://webassembly.github.io/spec/js-api/#create-a-memory-buffer
- https://www.w3.org/TR/webgpu/#dom-gpubuffer-getmappedrange

Perhaps this can be something you can pass to "create an ArrayBuffer" or perhaps it should be a separate operation.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1375
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1375@github.com>

Received on Thursday, 16 November 2023 08:12:23 UTC