summaryrefslogtreecommitdiff
path: root/js/text_encoding.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/text_encoding.ts')
-rw-r--r--js/text_encoding.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/text_encoding.ts b/js/text_encoding.ts
index 5aed7ac07..a956cd52c 100644
--- a/js/text_encoding.ts
+++ b/js/text_encoding.ts
@@ -481,7 +481,7 @@ export class TextEncoder {
break;
}
if (Array.isArray(result)) {
- output.push.apply(output, result);
+ output.push(...result);
} else {
output.push(result);
}