- From: Kevin Gibbons <notifications@github.com>
- Date: Fri, 18 Jul 2025 11:17:29 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 18 July 2025 18:17:34 UTC
bakkot left a comment (whatwg/webidl#1487) I think the default should be to accept immutable buffers. Even for APIs which write to their argument (which are rare - TextEncoder encodeInto comes to mind, but little else) they'll just throw when they actually try to write. It would be nice for APIs which do a copy to be updated not to do that, but this is an unobservable optimization which engines could do anyway, so it's not strictly necessary. Maybe instead there should be a `[ForbidImmutable]` attribute for the those rare cases? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/issues/1487#issuecomment-3090288809 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/issues/1487/3090288809@github.com>
Received on Friday, 18 July 2025 18:17:34 UTC