Skip to content

Commit 7f9f168

Browse files
author
Guillaume Chau
committed
fix: clone Buffer check, closes #874
1 parent 44e8b12 commit 7f9f168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export function installHook (target) {
169169
var allParents = []
170170
var allChildren = []
171171

172-
var useBuffer = typeof Buffer !== 'undefined'
172+
var useBuffer = typeof Buffer !== 'undefined' && typeof Buffer.isBuffer === 'function'
173173

174174
if (typeof circular === 'undefined') { circular = true }
175175

0 commit comments

Comments
 (0)