From 3f5265b21ec578e543d09cdc9d8b19d9655aebd9 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Tue, 16 Feb 2021 09:10:59 +0800 Subject: fix: align btoa to spec (#9053) --- cli/tests/unit/text_encoding_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tests/unit/text_encoding_test.ts') diff --git a/cli/tests/unit/text_encoding_test.ts b/cli/tests/unit/text_encoding_test.ts index 58905157a..c7c07f937 100644 --- a/cli/tests/unit/text_encoding_test.ts +++ b/cli/tests/unit/text_encoding_test.ts @@ -69,7 +69,7 @@ unitTest(function btoaFailed(): void { const text = "你好"; assertThrows(() => { btoa(text); - }, TypeError); + }, DOMException); }); unitTest(function textDecoder2(): void { -- cgit v1.2.3