From 3317106cd5b99a965ecd623f720b15430ea36788 Mon Sep 17 00:00:00 2001 From: Andrew Bulat Date: Tue, 30 Apr 2024 11:46:43 +0100 Subject: [PATCH] Remove unnecessary `.buffer` call in node.js BufferUtils --- src/platform/nodejs/lib/util/bufferutils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/nodejs/lib/util/bufferutils.ts b/src/platform/nodejs/lib/util/bufferutils.ts index e1c6fbcb67..52b46ba2b1 100644 --- a/src/platform/nodejs/lib/util/bufferutils.ts +++ b/src/platform/nodejs/lib/util/bufferutils.ts @@ -56,7 +56,7 @@ class BufferUtils implements IBufferUtils { } arrayBufferViewToBuffer(arrayBufferView: ArrayBufferView): Buffer { - return this.toBuffer(arrayBufferView.buffer); + return this.toBuffer(arrayBufferView); } utf8Decode(buffer: Bufferlike): string {