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,16 @@
<!doctype html>
<meta charset=utf-8>
<script>
self.GLOBAL = {
isWindow: function() { return true; },
isWorker: function() { return false; },
isShadowRealm: function() { return false; },
};
</script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="resources/readable-stream-from-array.js"></script>
<script src="resources/readable-stream-to-array.js"></script>
<div id=log></div>
<script src="../../encoding/streams/encode-utf8.any.js"></script>