summaryrefslogtreecommitdiff
path: root/cli/js
diff options
context:
space:
mode:
authorMarcos Casagrande <marcoscvp90@gmail.com>2020-06-28 16:31:56 +0200
committerGitHub <noreply@github.com>2020-06-28 10:31:56 -0400
commit89ebe2079bf51ec55c89c093ab16c3179ccd43fe (patch)
tree6dc69537b2103a5e0b65676bcba00b7a068dfb5e /cli/js
parent1c12098e4a4fbbf981574fafe5ac5a97294c17a0 (diff)
fix(cli/body): Maximum call stack size exceeded error (#6537)
Diffstat (limited to 'cli/js')
-rw-r--r--cli/js/web/body.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/web/body.ts b/cli/js/web/body.ts
index 8f5b48ad8..8530154b3 100644
--- a/cli/js/web/body.ts
+++ b/cli/js/web/body.ts
@@ -35,7 +35,7 @@ function validateBodyType(owner: Body, bodySource: BodyInit | null): boolean {
);
}
-function concatenate(...arrays: Uint8Array[]): ArrayBuffer {
+function concatenate(arrays: Uint8Array[]): ArrayBuffer {
let totalLength = 0;
for (const arr of arrays) {
totalLength += arr.length;
@@ -73,7 +73,7 @@ async function bufferFromStream(
}
}
- return concatenate(...parts);
+ return concatenate(parts);
}
export const BodyUsedError =