Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TextEncoderStream and TextDecoderStream transform streams
Integrate with the streams standard by adding TextEncoderStream and TextDecoderStream transform streams to the standard. These enable byte<>string conversions on a ReadableStream using the pipeThrough() method (see https://streams.spec.whatwg.org/#rs-pipe-through). A TextEncoderStream object can be used to transform a stream of strings to a stream of bytes in UTF-8 encoding. A TextDecoderStream object can be used to transform a stream of bytes in the encoding passed to the constructor to strings. Tests: web-platform-tests/wpt#12430. There is a prollyfill and tests for the new functionality at https://github.com/GoogleChromeLabs/text-encode-transform-prollyfill. Closes #72.
- Loading branch information
c3e3887
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.
Please don't comment on commits. Those comments get lost easily. The reason is a build problem that'll be fixed shortly hopefully.