diff --git a/src/platform/nodejs/lib/util/bufferutils.ts b/src/platform/nodejs/lib/util/bufferutils.ts index e1c6fbcb6..52b46ba2b 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 {