diff --git a/src/helpers/anonymizer.js b/src/helpers/anonymizer.js index d8496637..b1cc1de4 100644 --- a/src/helpers/anonymizer.js +++ b/src/helpers/anonymizer.js @@ -29,7 +29,7 @@ function filepathRecursiveReplacer(obj: mixed) { } } else { for (const k in obj) { - if (obj.hasOwnProperty(k)) { + if (typeof obj.hasOwnProperty === 'function' && obj.hasOwnProperty(k)) { const value = obj[k] if (typeof value === 'string') { obj[k] = filepathReplace(value)