summaryrefslogtreecommitdiff
path: root/op_crates/web/08_text_encoding.js
diff options
context:
space:
mode:
authorgorogoroumaru <zokutyou2@gmail.com>2021-01-11 07:15:32 +0900
committerGitHub <noreply@github.com>2021-01-11 09:15:32 +1100
commitb0821fe9ce017ea1fdec191622f27c31af9c4f0f (patch)
tree7ab8c24d7a01f2dae996c1194d899ada90ce6ff7 /op_crates/web/08_text_encoding.js
parent1a6ce29f3d11e5f0d0d022914e3f9fbcfa487294 (diff)
fix(op_crate/web): fix atob to throw spec aligned DOMException (#8798)
Diffstat (limited to 'op_crates/web/08_text_encoding.js')
-rw-r--r--op_crates/web/08_text_encoding.js2
1 files changed, 1 insertions, 1 deletions
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",
);
}