Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TextDecoderStream's behavior when processing the end of stream #265

Merged
merged 2 commits into from
Jun 24, 2021

Conversation

andreubotella
Copy link
Member

@andreubotella andreubotella commented Jun 21, 2021

This change fixes TextDecoderStream's "flush and enqueue" algorithm to handle the end of the stream in the same way as a call to TextDecoder's decode method with no parameters.

Fixes #263.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

This change fixes TextDecoderStream's "flush and enqueue" algorithm to
handle the end of the stream in the same way as a call to TextDecoder's
decode method with no parameters.

Fixes #263.
@andreubotella andreubotella added needs tests Moving the issue forward requires someone to write tests topic: api labels Jun 21, 2021
@andreubotella andreubotella requested review from ricea and annevk and removed request for ricea June 21, 2021 10:35
encoding.bs Outdated Show resolved Hide resolved
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
annevk added a commit to web-platform-tests/wpt that referenced this pull request Jun 24, 2021
@annevk
Copy link
Member

annevk commented Jun 24, 2021

I created tests for this over at web-platform-tests/wpt#29481. Review welcome!

annevk added a commit to web-platform-tests/wpt that referenced this pull request Jun 24, 2021
@annevk annevk removed the needs tests Moving the issue forward requires someone to write tests label Jun 24, 2021
@annevk annevk merged commit b74cc91 into main Jun 24, 2021
@annevk annevk deleted the andreubotella/flush-and-enqueue branch June 24, 2021 17:40
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 27, 2021
…stonly

Automatic update from web-platform-tests
Encoding: add some basic EOF tests

For whatwg/encoding#265.
--

wpt-commits: 9eab9a5f0b8768ee0de824a9d136c7c0da55b4dd
wpt-pr: 29481
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Jul 16, 2021
…stonly

Automatic update from web-platform-tests
Encoding: add some basic EOF tests

For whatwg/encoding#265.
--

wpt-commits: 9eab9a5f0b8768ee0de824a9d136c7c0da55b4dd
wpt-pr: 29481
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Bug in TextDecoderStream around processing the end of stream.
3 participants