summaryrefslogtreecommitdiff
path: root/test/wpt/status
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-10-26 16:27:51 +0200
committerAnna Henningsen <anna@addaleax.net>2019-11-05 20:19:09 +0100
commit237be2ed9e25e4d56deaf3935be0c217913e5a75 (patch)
treef3389797e763be54b82a159a9cd780ea0f2dbfd3 /test/wpt/status
parentafd29c9502449121aacba37b253dc39e159aae03 (diff)
downloadandroid-node-v8-237be2ed9e25e4d56deaf3935be0c217913e5a75.tar.gz
android-node-v8-237be2ed9e25e4d56deaf3935be0c217913e5a75.tar.bz2
android-node-v8-237be2ed9e25e4d56deaf3935be0c217913e5a75.zip
encoding: make TextDecoder handle BOM correctly
Do not accept the BOM if it comes from a different encoding, and only discard the BOM after it has actually been read (including when it is spread over multiple chunks in streaming mode). Fixes: https://github.com/nodejs/node/issues/25315 PR-URL: https://github.com/nodejs/node/pull/30132 Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'test/wpt/status')
-rw-r--r--test/wpt/status/encoding.json5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/wpt/status/encoding.json b/test/wpt/status/encoding.json
index 088eed802f..b51dde2aae 100644
--- a/test/wpt/status/encoding.json
+++ b/test/wpt/status/encoding.json
@@ -22,10 +22,7 @@
"fail": "iso-2022-jp decoder state handling bug: https://encoding.spec.whatwg.org/#iso-2022-jp-decoder"
},
"textdecoder-byte-order-marks.any.js": {
- "fail": "Mismatching BOM should not be ignored"
- },
- "textdecoder-copy.any.js": {
- "fail": "Should not have output BOM: https://encoding.spec.whatwg.org/#concept-td-serialize"
+ "requires": ["small-icu"]
},
"textdecoder-fatal-single-byte.any.js": {
"requires": ["full-icu"],