From 89ebe2079bf51ec55c89c093ab16c3179ccd43fe Mon Sep 17 00:00:00 2001 From: Marcos Casagrande Date: Sun, 28 Jun 2020 16:31:56 +0200 Subject: fix(cli/body): Maximum call stack size exceeded error (#6537) --- cli/js/web/body.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/js') 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 = -- cgit v1.2.3