| | |
| | | |
| | | var returnThis = function () { return this; }; |
| | | |
| | | module.exports = function (IteratorConstructor, NAME, next) { |
| | | module.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { |
| | | var TO_STRING_TAG = NAME + ' Iterator'; |
| | | IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) }); |
| | | IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) }); |
| | | setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true); |
| | | Iterators[TO_STRING_TAG] = returnThis; |
| | | return IteratorConstructor; |