aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/library/modules/web.dom.iterable.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/library/modules/web.dom.iterable.js')
-rw-r--r--node_modules/core-js/library/modules/web.dom.iterable.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/node_modules/core-js/library/modules/web.dom.iterable.js b/node_modules/core-js/library/modules/web.dom.iterable.js
index 988c6da20..e56371a9d 100644
--- a/node_modules/core-js/library/modules/web.dom.iterable.js
+++ b/node_modules/core-js/library/modules/web.dom.iterable.js
@@ -1,3 +1,13 @@
require('./es6.array.iterator');
-var Iterators = require('./$.iterators');
-Iterators.NodeList = Iterators.HTMLCollection = Iterators.Array; \ No newline at end of file
+var global = require('./_global')
+ , hide = require('./_hide')
+ , Iterators = require('./_iterators')
+ , TO_STRING_TAG = require('./_wks')('toStringTag');
+
+for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){
+ var NAME = collections[i]
+ , Collection = global[NAME]
+ , proto = Collection && Collection.prototype;
+ if(proto && !proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME);
+ Iterators[NAME] = Iterators.Array;
+} \ No newline at end of file