Skip to content

Commit

Permalink
fix one more case related to #1313
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Nov 30, 2023
1 parent b0a0055 commit 7298628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/internals/array-reduce.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ var $TypeError = TypeError;
// `Array.prototype.{ reduce, reduceRight }` methods implementation
var createMethod = function (IS_RIGHT) {
return function (that, callbackfn, argumentsLength, memo) {
aCallable(callbackfn);
var O = toObject(that);
var self = IndexedObject(O);
var length = lengthOfArrayLike(O);
aCallable(callbackfn);
var index = IS_RIGHT ? length - 1 : 0;
var i = IS_RIGHT ? -1 : 1;
if (argumentsLength < 2) while (true) {
Expand Down

0 comments on commit 7298628

Please sign in to comment.