Configring node js.

This commit is contained in:
Vahagn Khachatryan
2018-12-07 15:58:35 +00:00
parent eef20e4bdd
commit 4fa4328740
1501 changed files with 87070 additions and 0 deletions

View 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;
}