Skip to content

Commit

Permalink
Merge pull request #987 from moorejs/master
Browse files Browse the repository at this point in the history
fix #988
  • Loading branch information
zloirock authored Sep 21, 2021
2 parents 0af284e + c01268a commit 74f441d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core-js/modules/web.dom-collections.for-each.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ var handlePrototype = function (CollectionPrototype) {
};

for (var COLLECTION_NAME in DOMIterables) {
handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);
if (DOMIterables[COLLECTION_NAME]) {
handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype);
}
}

handlePrototype(DOMTokenListPrototype);

0 comments on commit 74f441d

Please sign in to comment.