From b0821fe9ce017ea1fdec191622f27c31af9c4f0f Mon Sep 17 00:00:00 2001 From: gorogoroumaru Date: Mon, 11 Jan 2021 07:15:32 +0900 Subject: fix(op_crate/web): fix atob to throw spec aligned DOMException (#8798) --- op_crates/web/08_text_encoding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op_crates') diff --git a/op_crates/web/08_text_encoding.js b/op_crates/web/08_text_encoding.js index 59c1aba8f..cf435adc5 100644 --- a/op_crates/web/08_text_encoding.js +++ b/op_crates/web/08_text_encoding.js @@ -105,7 +105,7 @@ if (rem === 1 || /[^+/0-9A-Za-z]/.test(s)) { throw new DOMException( "The string to be decoded is not correctly encoded", - "DataDecodeError", + "InvalidCharacterError", ); } -- cgit v1.2.3