Re: [whatwg/encoding] Make encodeInto() throw when given a detached buffer (Issue #324)

This also applies to `TextDecoder`'s `decode()` and looking at https://webidl.spec.whatwg.org/#dfn-get-buffer-source-copy the handling of detached buffers is pretty intentional at least for that and APIs like it.

I suspect it's all aligned with the original non-throwy view APIs. This makes me a bit more worried about introducing a throw here and there as it seems unlikely we will be able to be consistent.

Thoughts?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/issues/324#issuecomment-1921685910
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/encoding/issues/324/1921685910@github.com>

Received on Thursday, 1 February 2024 16:13:18 UTC