Skip to content

Commit

Permalink
Merge pull request #93 from JakeChampion/patch-1
Browse files Browse the repository at this point in the history
Make sure stringIteratorExists is checking for iterator function on String prototype
  • Loading branch information
lucasfcosta authored Apr 11, 2017
2 parents e79b36f + c6b49d8 commit 71bcdac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().e
var mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());
var arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';
var arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());
var stringIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';
var stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';
var stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());
var toStringLeftSliceLength = 8;
var toStringRightSliceLength = -1;
Expand Down

0 comments on commit 71bcdac

Please sign in to comment.