diff --git a/js_api_module/buffer/src/js_buffer.ts b/js_api_module/buffer/src/js_buffer.ts index 7e5b9624cb6365306b3bf4dce93c97a6e59a5727..ff7eb84368e25e47330af6e77b64c28af4a90fbd 100644 --- a/js_api_module/buffer/src/js_buffer.ts +++ b/js_api_module/buffer/src/js_buffer.ts @@ -1963,7 +1963,7 @@ function concat(list: Buffer[] | Uint8Array[], totalLength?: number): Buffer { rangeErrorCheck(totalLength, 'totalLength', 0, UINT32MAX); - let buffer = allocUninitializedFromPool(totalLength); + let buffer = alloc(totalLength); let offset = 0; for (let i = 0, len = list.length; i < len; i++) { const buf = list[i];