mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
fix: align btoa to spec (#9053)
This commit is contained in:
parent
7e9028b532
commit
3f5265b21e
3 changed files with 12 additions and 4 deletions
|
@ -69,7 +69,7 @@ unitTest(function btoaFailed(): void {
|
|||
const text = "你好";
|
||||
assertThrows(() => {
|
||||
btoa(text);
|
||||
}, TypeError);
|
||||
}, DOMException);
|
||||
});
|
||||
|
||||
unitTest(function textDecoder2(): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue