Skip to content

Commit 91d402d

Browse files
committed
fix a lack of early error in Iterator.concat polyfill on primitive as an iterator
1 parent 5fbf907 commit 91d402d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- Fixed iterator closing in `Array.from` polyfill on failure to create array property
1616
- Fixed handling strings as iterables in `Iterator.{ zip, zipKeyed }` polyfills
1717
- Fixed some cases of iterators closing in `Iterator.{ zip, zipKeyed }` polyfills
18+
- Fixed a lack of early error in `Iterator.concat` polyfill on primitive as an iterator
1819
- Fixed iterator closing in `Set.prototype.{ isDisjointFrom, isSupersetOf }` polyfill
1920
- Fixed (updated following the final spec) one more case `Set.prototype.difference` polyfill with updating `this`
2021
- Fixed `DataView.prototype.setFloat16` polyfill in (0, 1) range

packages/core-js/modules/es.iterator.concat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var IteratorProxy = createIteratorProxy(function () {
2121
}
2222
var entry = iterables[iterableIndex];
2323
this.iterables[iterableIndex] = null;
24-
iterator = this.iterator = call(entry.method, entry.iterable);
24+
iterator = this.iterator = anObject(call(entry.method, entry.iterable));
2525
this.next = iterator.next;
2626
}
2727
var result = anObject(call(this.next, iterator));

0 commit comments

Comments
 (0)