From 9885d72eb3e676b1d87b1896db3c907b6d955305 Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Wed, 3 Jan 2024 10:45:47 +0200 Subject: [PATCH] fix type --- js/src/builder/largebinary.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/builder/largebinary.ts b/js/src/builder/largebinary.ts index 59aa7144d20a1..f737349ac1c49 100644 --- a/js/src/builder/largebinary.ts +++ b/js/src/builder/largebinary.ts @@ -24,7 +24,7 @@ import { VariableWidthBuilder, BuilderOptions } from '../builder.js'; export class LargeBinaryBuilder extends VariableWidthBuilder { constructor(opts: BuilderOptions) { super(opts); - this._values = new BufferBuilder(new Uint8Array(0)); + this._values = new BufferBuilder(Uint8Array); } public get byteLength(): number { let size = this._pendingLength + (this.length * 4);