fix: align btoa to spec (#9053)

This commit is contained in:
Casper Beyer 2021-02-16 09:10:59 +08:00 committed by GitHub
parent 7e9028b532
commit 3f5265b21e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 4 deletions

View file

@ -69,7 +69,7 @@ unitTest(function btoaFailed(): void {
const text = "你好";
assertThrows(() => {
btoa(text);
}, TypeError);
}, DOMException);
});
unitTest(function textDecoder2(): void {