Re: [whatwg/encoding] Throw exception when text encode alloc memory fail. (Issue #334)

annevk left a comment (whatwg/encoding#334)

Chromium does seem to throw the wrong exception here. It's the allocation of `ArrayBuffer` that fails and that should lead to a `RangeError` exception, per JS.

For the reverse situation, when we need to allocate a string and fail, it's less clear to me.

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

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

Received on Wednesday, 23 April 2025 16:19:32 UTC