aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/library/modules/_object-gopn-ext.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/library/modules/_object-gopn-ext.js')
-rw-r--r--node_modules/core-js/library/modules/_object-gopn-ext.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/node_modules/core-js/library/modules/_object-gopn-ext.js b/node_modules/core-js/library/modules/_object-gopn-ext.js
deleted file mode 100644
index f4d10b4a1..000000000
--- a/node_modules/core-js/library/modules/_object-gopn-ext.js
+++ /dev/null
@@ -1,19 +0,0 @@
-// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
-var toIObject = require('./_to-iobject')
- , gOPN = require('./_object-gopn').f
- , toString = {}.toString;
-
-var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
- ? Object.getOwnPropertyNames(window) : [];
-
-var getWindowNames = function(it){
- try {
- return gOPN(it);
- } catch(e){
- return windowNames.slice();
- }
-};
-
-module.exports.f = function getOwnPropertyNames(it){
- return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
-};