Configring node js.
This commit is contained in:
13
node_modules/core-js/library/modules/web.dom.iterable.js
generated
vendored
Normal file
13
node_modules/core-js/library/modules/web.dom.iterable.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
require('./es6.array.iterator');
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user