Re: [whatwg/encoding] ISO-2022-JP does not reset state when returning error (Issue #358)

ChALkeR left a comment (whatwg/encoding#358)

@annevk resetting does not solve the issue and will still be inconsistent.

The only consistent behavior that I could think of that allows combining `fatal: true` and `stream: true` is setting an `errored` flag and continuing throwing on any input until a final non-stream `decode()` clears the flag (and also throws one final time).

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

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

Received on Sunday, 21 December 2025 10:04:22 UTC