From bc8062cd3c15c1eb73eb9fe474d809ab893da063 Mon Sep 17 00:00:00 2001 From: "Ilya.Zhernosek" Date: Thu, 30 May 2019 15:52:54 +0300 Subject: [PATCH] fix error "accessing the caller property of a function" on IE11 --- src/handlers.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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') )