From 6afbf3c4fe60f4d0d1f72a603949952fee0f47ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Thu, 5 Jul 2018 21:03:52 +0200 Subject: [PATCH] fix anonymiser --- src/helpers/anonymizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)