Skip to content

Commit

Permalink
fix a helper name
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed May 31, 2022
1 parent 7687c2b commit c04e4e1
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/core-js/internals/array-to-spliced.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var lengthOfArrayLike = require('../internals/length-of-array-like');
var doesNonExceededSafeInteger = require('../internals/does-non-exceeded-safe-integer');
var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');
var toAbsoluteIndex = require('../internals/to-absolute-index');
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');

Expand All @@ -25,7 +25,7 @@ module.exports = function (O, C, args) {
insertCount = argumentsLength - 2;
actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
}
newLen = doesNonExceededSafeInteger(len + insertCount - actualDeleteCount);
newLen = doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);
A = new C(newLen);

for (; k < actualStart; k++) A[k] = O[k];
Expand Down
4 changes: 2 additions & 2 deletions packages/core-js/internals/async-iterator-iteration.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var call = require('../internals/function-call');
var aCallable = require('../internals/a-callable');
var anObject = require('../internals/an-object');
var doesNonExceededSafeInteger = require('../internals/does-non-exceeded-safe-integer');
var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');
var getBuiltIn = require('../internals/get-built-in');
var getMethod = require('../internals/get-method');

Expand Down Expand Up @@ -43,7 +43,7 @@ var createMethod = function (TYPE) {

var loop = function () {
try {
if (IS_TO_ARRAY && MAPPING) doesNonExceededSafeInteger(index);
if (IS_TO_ARRAY && MAPPING) doesNotExceedSafeInteger(index);
Promise.resolve(anObject(call(next, iterator))).then(function (step) {
try {
if (anObject(step).done) {
Expand Down
4 changes: 2 additions & 2 deletions packages/core-js/internals/flatten-into-array.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';
var isArray = require('../internals/is-array');
var lengthOfArrayLike = require('../internals/length-of-array-like');
var doesNonExceededSafeInteger = require('../internals/does-non-exceeded-safe-integer');
var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');
var bind = require('../internals/function-bind-context');

// `FlattenIntoArray` abstract operation
Expand All @@ -20,7 +20,7 @@ var flattenIntoArray = function (target, original, source, sourceLen, start, dep
elementLen = lengthOfArrayLike(element);
targetIndex = flattenIntoArray(target, original, element, elementLen, targetIndex, depth - 1) - 1;
} else {
doesNonExceededSafeInteger(targetIndex + 1);
doesNotExceedSafeInteger(targetIndex + 1);
target[targetIndex] = element;
}

Expand Down
6 changes: 3 additions & 3 deletions packages/core-js/modules/es.array.concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var isArray = require('../internals/is-array');
var isObject = require('../internals/is-object');
var toObject = require('../internals/to-object');
var lengthOfArrayLike = require('../internals/length-of-array-like');
var doesNonExceededSafeInteger = require('../internals/does-non-exceeded-safe-integer');
var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');
var createProperty = require('../internals/create-property');
var arraySpeciesCreate = require('../internals/array-species-create');
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
Expand Down Expand Up @@ -47,10 +47,10 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
E = i === -1 ? O : arguments[i];
if (isConcatSpreadable(E)) {
len = lengthOfArrayLike(E);
doesNonExceededSafeInteger(n + len);
doesNotExceedSafeInteger(n + len);
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
} else {
doesNonExceededSafeInteger(n + 1);
doesNotExceedSafeInteger(n + 1);
createProperty(A, n++, E);
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/core-js/modules/es.array.splice.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var toObject = require('../internals/to-object');
var toAbsoluteIndex = require('../internals/to-absolute-index');
var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');
var lengthOfArrayLike = require('../internals/length-of-array-like');
var doesNonExceededSafeInteger = require('../internals/does-non-exceeded-safe-integer');
var doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');
var arraySpeciesCreate = require('../internals/array-species-create');
var createProperty = require('../internals/create-property');
var arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');
Expand Down Expand Up @@ -33,7 +33,7 @@ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
insertCount = argumentsLength - 2;
actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
}
doesNonExceededSafeInteger(len + insertCount - actualDeleteCount);
doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);
A = arraySpeciesCreate(O, actualDeleteCount);
for (k = 0; k < actualDeleteCount; k++) {
from = actualStart + k;
Expand Down

0 comments on commit c04e4e1

Please sign in to comment.