Skip to content

Commit

Permalink
remove {forEach, keys, values, entries } from majority of DOM colle…
Browse files Browse the repository at this point in the history
…ction prototypes

These appear to be added to address #329. However, only NodeList and
DOMTokenList are documented and tested to have these functions on their
prototypes.
  • Loading branch information
moorejs committed Sep 21, 2021
1 parent ed21ba3 commit bd145f0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/core-js/modules/web.dom-collections.for-each.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
var global = require('../internals/global');
var DOMIterables = require('../internals/dom-iterables');
var DOMTokenListPrototype = require('../internals/dom-token-list-prototype');
var forEach = require('../internals/array-for-each');
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
Expand All @@ -13,8 +12,6 @@ var handlePrototype = function (CollectionPrototype) {
}
};

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

handlePrototype(global['NodeList'] && global['NodeList'].prototype);
handlePrototype(global['DOMTokenList'] && global['DOMTokenList'].prototype);
handlePrototype(DOMTokenListPrototype);

0 comments on commit bd145f0

Please sign in to comment.