Skip to content

Commit

Permalink
drop a legacy check
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Oct 12, 2023
1 parent 3886ffe commit 3eb9823
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core-js/modules/esnext.iterator.range.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ var $RangeError = RangeError;
var $TypeError = TypeError;

var $NumericRangeIterator = createIteratorConstructor(function NumericRangeIterator(start, end, option, type, zero, one) {
// TODO: Drop the first `typeof` check after removing legacy methods in `core-js@4`
if (typeof start != type || (end !== Infinity && end !== -Infinity && typeof end != type)) {
if (end !== Infinity && end !== -Infinity && typeof end != type) {
throw new $TypeError(INCORRECT_RANGE);
}
if (start === Infinity || start === -Infinity) {
Expand Down

0 comments on commit 3eb9823

Please sign in to comment.