diff --git a/src/handlers.js b/src/handlers.js index 74fa71d..d5b4743 100644 --- a/src/handlers.js +++ b/src/handlers.js @@ -9,7 +9,13 @@ import { const hasOwnProperty = Object.prototype.hasOwnProperty const wellKnownSymbols = new Set( Object.getOwnPropertyNames(Symbol) - .map(key => Symbol[key]) + .map(key => { + try { + return Symbol[key] + } catch (e) { + return null; + } + }) .filter(value => typeof value === 'symbol') )