fix(client): do not call toJSON for buffers

This commit is contained in:
teidesu 2021-05-31 22:36:48 +03:00
parent 2daf497cc4
commit 1e9c4de86d

View file

@ -59,6 +59,7 @@ export function makeInspectable(
if ( if (
val && val &&
typeof val === 'object' && typeof val === 'object' &&
!Buffer.isBuffer(val) &&
typeof val.toJSON === 'function' typeof val.toJSON === 'function'
) { ) {
val = val.toJSON() val = val.toJSON()