[whatwg/encoding] Editorial: make ISO-2022-JP encoder perform error state switch (#236)

This way you can invoke its handler directly without going the process algorithm as is needed to fix #235. This also avoids the need for "prepend" in the "process" algorithm.

Additionally, this commit adds two clarifying asserts to the "process" algorithm documenting what error modes can be in effect when.


<!--
    This comment and the below content is programatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/encoding/236.html" title="Last updated on Oct 20, 2020, 11:52 AM UTC (75b2415)">Preview</a> | <a href="https://whatpr.org/encoding/236/92569b5...75b2415.html" title="Last updated on Oct 20, 2020, 11:52 AM UTC (75b2415)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/encoding/pull/236

-- Commit Summary --

  * Editorial: make ISO-2022-JP encoder perform error state switch

-- File Changes --

    M encoding.bs (25)

-- Patch Links --

https://github.com/whatwg/encoding/pull/236.patch
https://github.com/whatwg/encoding/pull/236.diff

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

Received on Tuesday, 20 October 2020 11:52:28 UTC