summaryrefslogtreecommitdiff
path: root/js/text_encoding_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/text_encoding_test.ts')
-rw-r--r--js/text_encoding_test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/text_encoding_test.ts b/js/text_encoding_test.ts
index f7939499a..4eab24808 100644
--- a/js/text_encoding_test.ts
+++ b/js/text_encoding_test.ts
@@ -46,7 +46,7 @@ test(function textDecoderASCII() {
test(function textDecoderErrorEncoding() {
let didThrow = false;
try {
- const decoder = new TextDecoder("foo");
+ new TextDecoder("foo");
} catch (e) {
didThrow = true;
assertEquals(e.message, "The encoding label provided ('foo') is invalid.");