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

In https://github.com/whatwg/webidl/issues/1385 we discovered some specification UB. However, that also raised the question as to whether this method should perhaps be throwing an exception when given a detached buffer.

I tend to think it should and hopefully there's no callers relying on it not throwing as it's still early days?

cc @hsivonen @inexorabletash @youennf

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

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

Received on Wednesday, 24 January 2024 14:19:48 UTC