Skip to content

stream: update TextEncoderStream to align with the latest spec

This PR updated TextEncoderStream implementation to align with the latest WHATWG spec.

Test cases of /test/fixtures/wpt/encoding/streams/encode-utf8.any.js (WPT for TextEncoderStream) are all passed now. (The previous implementation didn't support surrogate pairs.)

Merge request reports

Loading