summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/io.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/io.ts b/js/io.ts
index 710722f42..77ef79073 100644
--- a/js/io.ts
+++ b/js/io.ts
@@ -101,7 +101,7 @@ export interface ReadWriteSeeker extends Reader, Writer, Seeker {}
// https://golang.org/pkg/io/#Copy
export async function copy(dst: Writer, src: Reader): Promise<number> {
let n = 0;
- const b = new Uint8Array(1024);
+ const b = new Uint8Array(32*1024);
let gotEOF = false;
while (gotEOF === false) {
const result = await src.read(b);