Skip to content

Commit 71bcdac

Browse files
authored
Merge pull request #93 from JakeChampion/patch-1
Make sure stringIteratorExists is checking for iterator function on String prototype
2 parents e79b36f + c6b49d8 commit 71bcdac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var setIteratorPrototype = setEntriesExists && Object.getPrototypeOf(new Set().e
2121
var mapIteratorPrototype = mapEntriesExists && Object.getPrototypeOf(new Map().entries());
2222
var arrayIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';
2323
var arrayIteratorPrototype = arrayIteratorExists && Object.getPrototypeOf([][Symbol.iterator]());
24-
var stringIteratorExists = symbolIteratorExists && typeof Array.prototype[Symbol.iterator] === 'function';
24+
var stringIteratorExists = symbolIteratorExists && typeof String.prototype[Symbol.iterator] === 'function';
2525
var stringIteratorPrototype = stringIteratorExists && Object.getPrototypeOf(''[Symbol.iterator]());
2626
var toStringLeftSliceLength = 8;
2727
var toStringRightSliceLength = -1;

0 commit comments

Comments
 (0)