Configring node js.
This commit is contained in:
22
node_modules/core-js/modules/web.dom.iterable.js
generated
vendored
Normal file
22
node_modules/core-js/modules/web.dom.iterable.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
var $iterators = require('./es6.array.iterator')
|
||||
, redefine = require('./_redefine')
|
||||
, global = require('./_global')
|
||||
, hide = require('./_hide')
|
||||
, Iterators = require('./_iterators')
|
||||
, wks = require('./_wks')
|
||||
, ITERATOR = wks('iterator')
|
||||
, TO_STRING_TAG = wks('toStringTag')
|
||||
, ArrayValues = Iterators.Array;
|
||||
|
||||
for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){
|
||||
var NAME = collections[i]
|
||||
, Collection = global[NAME]
|
||||
, proto = Collection && Collection.prototype
|
||||
, key;
|
||||
if(proto){
|
||||
if(!proto[ITERATOR])hide(proto, ITERATOR, ArrayValues);
|
||||
if(!proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME);
|
||||
Iterators[NAME] = ArrayValues;
|
||||
for(key in $iterators)if(!proto[key])redefine(proto, key, $iterators[key], true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user