diff --git a/packages/core-js/internals/array-to-spliced.js b/packages/core-js/internals/array-to-spliced.js index 2a2de58a48c3..52862d8f9e17 100644 --- a/packages/core-js/internals/array-to-spliced.js +++ b/packages/core-js/internals/array-to-spliced.js @@ -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'); @@ -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]; diff --git a/packages/core-js/internals/async-iterator-iteration.js b/packages/core-js/internals/async-iterator-iteration.js index 4fbda7a4ff8e..1a400962a37d 100644 --- a/packages/core-js/internals/async-iterator-iteration.js +++ b/packages/core-js/internals/async-iterator-iteration.js @@ -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'); @@ -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) { diff --git a/packages/core-js/internals/does-non-exceeded-safe-integer.js b/packages/core-js/internals/does-not-exceed-safe-integer.js similarity index 100% rename from packages/core-js/internals/does-non-exceeded-safe-integer.js rename to packages/core-js/internals/does-not-exceed-safe-integer.js diff --git a/packages/core-js/internals/flatten-into-array.js b/packages/core-js/internals/flatten-into-array.js index 57dea8fbbeed..04b20305c7a3 100644 --- a/packages/core-js/internals/flatten-into-array.js +++ b/packages/core-js/internals/flatten-into-array.js @@ -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 @@ -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; } diff --git a/packages/core-js/modules/es.array.concat.js b/packages/core-js/modules/es.array.concat.js index 072e80db20de..a7654fe02600 100644 --- a/packages/core-js/modules/es.array.concat.js +++ b/packages/core-js/modules/es.array.concat.js @@ -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'); @@ -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); } } diff --git a/packages/core-js/modules/es.array.splice.js b/packages/core-js/modules/es.array.splice.js index 6087891142fb..1ec0314e2612 100644 --- a/packages/core-js/modules/es.array.splice.js +++ b/packages/core-js/modules/es.array.splice.js @@ -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'); @@ -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;