diff --git a/packages/runtime/src/Handle.ts b/packages/runtime/src/Handle.ts index 727457bb..96cd03ae 100644 --- a/packages/runtime/src/Handle.ts +++ b/packages/runtime/src/Handle.ts @@ -48,6 +48,7 @@ export class Handle { } public isBuffer (BufferConstructor?: BufferCtor): boolean { + if (ArrayBuffer.isView(this.value)) return true BufferConstructor ??= _Buffer return typeof BufferConstructor === 'function' && BufferConstructor.isBuffer(this.value) }