Skip to content

Commit

Permalink
Add TextEncoderStream and TextDecoderStream transform streams
Browse files Browse the repository at this point in the history
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
ricea authored and annevk committed Aug 29, 2018
1 parent 6f9a41f commit c3e3887
Showing 1 changed file with 491 additions and 64 deletions.
Loading

1 comment on commit c3e3887

@annevk
Copy link
Member

@annevk annevk commented on c3e3887 Aug 30, 2018

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.

Please sign in to comment.