diff --git a/src/lib/main.js b/src/lib/main.js index 5b08523322..afb2062d04 100644 --- a/src/lib/main.js +++ b/src/lib/main.js @@ -6,9 +6,6 @@ // required for browsers not supporting Object.freeze (helper requirement) import '../shams/Object.freeze.js'; -// required for IE <= 10 since move to babel6 -import '../shims/Object.getPrototypeOf.js'; - import toFactory from 'to-factory'; import algoliasearchHelper from 'algoliasearch-helper'; diff --git a/src/shims/Object.getPrototypeOf.js b/src/shims/Object.getPrototypeOf.js deleted file mode 100644 index d66e1b36de..0000000000 --- a/src/shims/Object.getPrototypeOf.js +++ /dev/null @@ -1,18 +0,0 @@ -/* eslint-disable */ - -// FIX IE <= 10 babel6: -// - https://phabricator.babeljs.io/T3041 -// - https://phabricator.babeljs.io/T3041#70671 -let testObject = {}; - -if (!(Object.setPrototypeOf || testObject.__proto__)) { - let nativeGetPrototypeOf = Object.getPrototypeOf; - - Object.getPrototypeOf = function(object) { - if (object.__proto__) { - return object.__proto__; - } else { - return nativeGetPrototypeOf.call(Object, object); - } - } -}