Skip to content

ISO-2022-JP does not reset state when returning error #358

Description

@annevk

What is the issue with the Encoding Standard?

As noted in web-platform-tests/wpt#56892 by @ChALkeR when you stream ISO-2022-JP content in fatal mode you can get an exception and then after that exception it'll continue in the same state where it was before the exception.

Other encodings reset state when returning error.

I think this was intentional because of the non-fatal mode (should probably double check), but maybe for the fatal mode we should do something in the API. E.g., we could reset the internal decoder before throwing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions