Skip to content

Commit

Permalink
[Tests] use getSymbolIterator internal module.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Feb 16, 2016
1 parent 637fa7c commit 8f47efa
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/native.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ var collectionsForEach = require('../getCollectionsForEach')();
var fooFn = function fooFn() {};
var functionsHaveNames = fooFn.name === 'fooFn';

var symbolIterator = typeof Symbol === 'function' && isSymbol(Symbol.iterator) ? Symbol.iterator : null;
if (typeof Object.getOwnPropertyNames === 'function' && typeof Map === 'function' && typeof Map.prototype.entries === 'function') {
forEach(Object.getOwnPropertyNames(Map.prototype), function (name) {
if (name !== 'entries' && name !== 'size' && Map.prototype[name] === Map.prototype.entries) {
symbolIterator = name;
}
});
}
var symbolIterator = require('../getSymbolIterator')();

var copyFunction = function (fn) {
/* eslint-disable no-new-func */
Expand Down

0 comments on commit 8f47efa

Please sign in to comment.