Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#358 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Ambito
api

Direzione di ricerca

Start by reviewing the ISO-2022-JP streaming decoder behavior in fatal mode and compare how other encodings handle state after returning an error. Confirm whether the decoder state is reset after the exception and define the expected API behavior before changing the standard or adding coverage.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

topic: api
What is the issue with the Encoding Standard?

As noted in https://github.com/web-platform-tests/wpt/pull/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.

Lingua principale
HTML
Stelle
323
Fork
94
Merge medio
21m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di whatwg/encoding

Tutte le issue di whatwg/encoding

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.