diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2021-06-05 23:10:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-05 23:10:07 +0200 |
commit | c73ef5fa143b473677d4cab069241ff018e0c971 (patch) | |
tree | f13f3ddb1741a81138240c36846e2a23fd562a02 /tools | |
parent | bb0c90cadbb99784681a2acac1fd65ac7f802297 (diff) |
refactor(web): use encoding_rs for text encoding (#10844)
This commit removes all JS based text encoding / text decoding. Instead
encoding now happens in Rust via encoding_rs (already in tree). This
implementation retains stream support, but adds the last missing
encodings. We are incredibly close to 100% WPT on text encoding now.
This should reduce our baseline heap by quite a bit.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/wpt/expectation.json | 64 |
1 files changed, 15 insertions, 49 deletions
diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index fe75af9d1..a941864e2 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -187,18 +187,6 @@ "encodeInto() and a detached output buffer" ], "idlharness.any.html": [ - "TextDecoder interface: existence and properties of interface object", - "TextDecoder interface: operation decode(optional BufferSource, optional TextDecodeOptions)", - "TextDecoder interface: attribute encoding", - "TextDecoder interface: attribute fatal", - "TextDecoder interface: attribute ignoreBOM", - "TextDecoder interface: new TextDecoder() must inherit property \"fatal\" with the proper type", - "TextDecoder interface: new TextDecoder() must inherit property \"ignoreBOM\" with the proper type", - "TextEncoder interface: existence and properties of interface object", - "TextEncoder interface: operation encode(optional USVString)", - "TextEncoder interface: operation encodeInto(USVString, Uint8Array)", - "TextEncoder interface: attribute encoding", - "TextEncoder interface: new TextEncoder() must inherit property \"encoding\" with the proper type", "TextDecoderStream interface: existence and properties of interface object", "TextDecoderStream interface object length", "TextDecoderStream interface object name", @@ -216,7 +204,7 @@ "TextEncoderStream interface: existence and properties of interface prototype object's @@unscopables property", "TextEncoderStream interface: attribute encoding" ], - "iso-2022-jp-decoder.any.html": false, + "iso-2022-jp-decoder.any.html": true, "legacy-mb-schinese": { "gb18030": { "gb18030-decoder.any.html": true @@ -237,11 +225,12 @@ "decode-utf8.any.html": false, "encode-bad-chunks.any.html": false, "encode-utf8.any.html": false, - "readable-writable-properties.any.html": false + "readable-writable-properties.any.html": false, + "realms.window.html": false }, "textdecoder-arguments.any.html": true, "textdecoder-byte-order-marks.any.html": true, - "textdecoder-copy.any.html": false, + "textdecoder-copy.any.html": true, "textdecoder-fatal-single-byte.any.html?1-1000": true, "textdecoder-fatal-single-byte.any.html?1001-2000": true, "textdecoder-fatal-single-byte.any.html?2001-3000": true, @@ -250,46 +239,23 @@ "textdecoder-fatal-single-byte.any.html?5001-6000": true, "textdecoder-fatal-single-byte.any.html?6001-7000": true, "textdecoder-fatal-single-byte.any.html?7001-last": true, - "textdecoder-fatal-streaming.any.html": [ - "Fatal flag, streaming cases" - ], + "textdecoder-fatal-streaming.any.html": true, "textdecoder-fatal.any.html": true, "textdecoder-ignorebom.any.html": true, "textdecoder-labels.any.html": [ - "cseucpkdfmtjapanese => EUC-JP", - "euc-jp => EUC-JP", - "x-euc-jp => EUC-JP", - "csiso2022jp => ISO-2022-JP", - "iso-2022-jp => ISO-2022-JP", - "csshiftjis => Shift_JIS", - "ms932 => Shift_JIS", - "ms_kanji => Shift_JIS", - "shift-jis => Shift_JIS", - "shift_jis => Shift_JIS", - "sjis => Shift_JIS", - "windows-31j => Shift_JIS", - "x-sjis => Shift_JIS", - "cseuckr => EUC-KR", - "csksc56011987 => EUC-KR", - "euc-kr => EUC-KR", - "iso-ir-149 => EUC-KR", - "korean => EUC-KR", - "ks_c_5601-1987 => EUC-KR", - "ks_c_5601-1989 => EUC-KR", - "ksc5601 => EUC-KR", - "ksc_5601 => EUC-KR", - "windows-949 => EUC-KR", - "x-user-defined => x-user-defined" + "unicode11utf8 => UTF-8", + "unicode20utf8 => UTF-8", + "x-unicode20utf8 => UTF-8", + "unicodefffe => UTF-16BE", + "csunicode => UTF-16LE", + "iso-10646-ucs-2 => UTF-16LE", + "ucs-2 => UTF-16LE", + "unicode => UTF-16LE", + "unicodefeff => UTF-16LE" ], "textdecoder-streaming.any.html": true, "textdecoder-utf16-surrogates.any.html": true, - "textencoder-constructor-non-utf.any.html": [ - "Encoding argument supported for decode: EUC-JP", - "Encoding argument supported for decode: ISO-2022-JP", - "Encoding argument supported for decode: Shift_JIS", - "Encoding argument supported for decode: EUC-KR", - "Encoding argument supported for decode: x-user-defined" - ], + "textencoder-constructor-non-utf.any.html": true, "textencoder-utf16-surrogates.any.html": true, "unsupported-encodings.any.html": false }, |