From 39853683b4cb3adb4a405b260db7095155ad9856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marja=20H=C3=B6ltt=C3=A4?= Date: Mon, 25 Sep 2017 10:39:50 +0200 Subject: [PATCH] [HACK] test: New test expectation for decoder. V8 has changed their invalid UTF-8 handling, see https://chromium-review.googlesource.com/c/v8/v8/+/671020 for more info. --- test/parallel/test-string-decoder.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/parallel/test-string-decoder.js b/test/parallel/test-string-decoder.js index ae4e0fbfb7..33337b6a9d 100644 --- a/test/parallel/test-string-decoder.js +++ b/test/parallel/test-string-decoder.js @@ -70,12 +70,10 @@ test('utf-8', Buffer.from('E2FBCC01', 'hex'), '\ufffd\ufffd\ufffd\u0001'); test('utf-8', Buffer.from('CCB8CDB9', 'hex'), '\u0338\u0379'); // CESU-8 of U+1D40D -// Disabled - V8 is changing the behavior related to overlong sequence / invalid -// code point handling. See -// https://chromium-review.googlesource.com/c/v8/v8/+/671020 for more -// information. - -// test('utf-8', Buffer.from('EDA0B5EDB08D', 'hex'), '\ufffd\ufffd'); +// V8 has changed their invalid UTF-8 handling, see +// https://chromium-review.googlesource.com/c/v8/v8/+/671020 for more info. +test('utf-8', Buffer.from('EDA0B5EDB08D', 'hex'), + '\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd'); // UCS-2 test('ucs2', Buffer.from('ababc', 'ucs2'), 'ababc');