Skip to content

Commit b4d723f

Browse files
committed
fix a lack of counter validation on MAX_SAFE_INTEGER in Array.fromAsync polyfill
1 parent 8f1c37a commit b4d723f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- Fixed closing iterator on `IteratorValue` errors in the internal `iterate` helper that affected some polyfills
1717
- Fixed iterator closing in `Array.from` polyfill on failure to create array property
1818
- Fixed order of arguments validation in `Array.fromAsync` polyfill
19+
- Fixed a lack of counter validation on `MAX_SAFE_INTEGER` in `Array.fromAsync` polyfill
1920
- Fixed order of arguments validation in `Array.prototype.flat` polyfill
2021
- Fixed handling strings as iterables in `Iterator.{ zip, zipKeyed }` polyfills
2122
- Fixed some cases of iterators closing in `Iterator.{ zip, zipKeyed }` polyfills

packages/core-js/internals/async-iterator-iteration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var createMethod = function (TYPE) {
3434

3535
var loop = function () {
3636
try {
37-
if (MAPPING) try {
37+
try {
3838
doesNotExceedSafeInteger(counter);
3939
} catch (error5) {
4040
return ifAbruptCloseAsyncIterator(error5);

0 commit comments

Comments
 (0)