Script: Implement TextEncoderStream (#38466)

This implements the `TextEncoderStream` WebIDL interface. 

Testing: Existing WPT tests should be sufficient
Fixes: #37724

---------

Signed-off-by: minghuaw <wuminghua7@huawei.com>
This commit is contained in:
minghuaw 2025-08-15 15:57:00 +08:00 committed by GitHub
parent f24f225db8
commit d409137e4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 476 additions and 228 deletions

View file

@ -1,22 +1,4 @@
[encode-bad-chunks.any.html]
[a chunk that cannot be converted to a string should error the streams]
expected: FAIL
[input of type undefined should be converted correctly to string]
expected: FAIL
[input of type null should be converted correctly to string]
expected: FAIL
[input of type numeric should be converted correctly to string]
expected: FAIL
[input of type object should be converted correctly to string]
expected: FAIL
[input of type array should be converted correctly to string]
expected: FAIL
[encode-bad-chunks.any.sharedworker.html]
expected: ERROR
@ -25,20 +7,3 @@
expected: ERROR
[encode-bad-chunks.any.worker.html]
[a chunk that cannot be converted to a string should error the streams]
expected: FAIL
[input of type undefined should be converted correctly to string]
expected: FAIL
[input of type null should be converted correctly to string]
expected: FAIL
[input of type numeric should be converted correctly to string]
expected: FAIL
[input of type object should be converted correctly to string]
expected: FAIL
[input of type array should be converted correctly to string]
expected: FAIL