From 9cf06f76fdeb4b8cff4a47e269984d3b9a64a9be Mon Sep 17 00:00:00 2001 From: aca Date: Tue, 20 Oct 2020 20:47:38 +0900 Subject: fix(op_crates/web): TextEncoder should return error message with original input (#8005) --- op_crates/web/text_encoding_test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'op_crates/web/text_encoding_test.js') diff --git a/op_crates/web/text_encoding_test.js b/op_crates/web/text_encoding_test.js index 7f6774ed4..9a4bb492b 100644 --- a/op_crates/web/text_encoding_test.js +++ b/op_crates/web/text_encoding_test.js @@ -163,10 +163,10 @@ function textDecoderASCII() { function textDecoderErrorEncoding() { let didThrow = false; try { - new TextDecoder("foo"); + new TextDecoder("Foo"); } catch (e) { didThrow = true; - assert(e.message === "The encoding label provided ('foo') is invalid."); + assert(e.message === "The encoding label provided ('Foo') is invalid."); } assert(didThrow); } -- cgit v1.2.3