LibWeb: Implement TextEncoderStream

Required by the server-side rendering mode of React Router, used by
https://chatgpt.com/

Note that the imported tests do not have the worker variants to prevent
freezing on macOS.
This commit is contained in:
Luke Wilde 2025-02-05 19:51:33 +00:00 committed by Tim Flynn
parent 24d5f24749
commit cae0ee6fa7
Notes: github-actions[bot] 2025-02-07 16:05:51 +00:00
36 changed files with 1375 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#import <Encoding/TextEncoder.idl>
#import <Streams/GenericTransformStream.idl>
// https://encoding.spec.whatwg.org/#textencoderstream
[Exposed=*]
interface TextEncoderStream {
constructor();
};
TextEncoderStream includes TextEncoderCommon;
TextEncoderStream includes GenericTransformStream;