mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
fix(op_crate/web): fix atob to throw spec aligned DOMException (#8798)
This commit is contained in:
parent
1a6ce29f3d
commit
b0821fe9ce
2 changed files with 16 additions and 1 deletions
|
@ -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",
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue