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

Throwing at the IDL layer would change the exception for everything calling into StructuredSerializeWithTransfer at least. Not sure that's really possible. My idea was to add one-off checks and also to assert that the buffer is not detached in various IDL algorithms so callers are "forced" to deal with it.

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

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

Received on Thursday, 25 January 2024 06:31:14 UTC