Skip to content

Commit

Permalink
fix: clone Buffer check, closes #874
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Mar 25, 2019
1 parent 44e8b12 commit 7f9f168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function installHook (target) {
var allParents = []
var allChildren = []

var useBuffer = typeof Buffer !== 'undefined'
var useBuffer = typeof Buffer !== 'undefined' && typeof Buffer.isBuffer === 'function'

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

Expand Down

0 comments on commit 7f9f168

Please sign in to comment.