-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
stream: update TextEncoderStream to align with the latest spec #44101
Merged
+66
−8
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aduh95
reviewed
Aug 2, 2022
lib/internal/webstreams/encoding.js
Outdated
Comment on lines
6
to
7
Uint8Array, | ||
String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested change
Uint8Array, | |
String | |
String, | |
Uint8Array, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done f2304b6
benjamingr
approved these changes
Aug 2, 2022
cola119
force-pushed
the
update-encoder-spec
branch
from
August 3, 2022 00:31
f2304b6
to
03412dc
Compare
aduh95
reviewed
Aug 3, 2022
cola119
force-pushed
the
update-encoder-spec
branch
from
August 3, 2022 09:15
03412dc
to
c44d983
Compare
aduh95
reviewed
Aug 3, 2022
aduh95
approved these changes
Aug 3, 2022
aduh95
added
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
request-ci
Add this label to start a Jenkins CI on a PR.
labels
Aug 3, 2022
github-actions
bot
removed
the
request-ci
Add this label to start a Jenkins CI on a PR.
label
Aug 3, 2022
aduh95
added
the
commit-queue
Add this label to land a pull request using GitHub Actions.
label
Aug 4, 2022
nodejs-github-bot
removed
the
commit-queue
Add this label to land a pull request using GitHub Actions.
label
Aug 4, 2022
Landed in c8bea71 |
This was referenced Aug 5, 2022
danielleadams
pushed a commit
that referenced
this pull request
Aug 16, 2022
PR-URL: #44101 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
ruyadorno
pushed a commit
that referenced
this pull request
Aug 23, 2022
PR-URL: #44101 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Fyko
pushed a commit
to Fyko/node
that referenced
this pull request
Sep 15, 2022
PR-URL: nodejs#44101 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
This is causing "wpt" tests in v16.x to fail. I will add the backport layer to this. |
cola119
changed the title
stream: update TextEncoderStream to align the latest spec
stream: update TextEncoderStream to align with the latest spec
Feb 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
needs-ci
PRs that need a full CI run.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updated
TextEncoderStream
implementation to align with the latest WHATWG spec.transform()
: https://encoding.spec.whatwg.org/#encode-and-enqueue-a-chunkflush
: https://encoding.spec.whatwg.org/#encode-and-flushTest cases of
/test/fixtures/wpt/encoding/streams/encode-utf8.any.js
(WPT forTextEncoderStream
) are all passed now. (The previous implementation didn't support surrogate pairs.)