Skip to content

Commit

Permalink
fix some blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Sep 5, 2022
1 parent eb8ed33 commit 6ca3e61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core-js/internals/typed-array-from.js
Expand Up @@ -31,7 +31,7 @@ module.exports = function from(source /* , mapfn, thisArg */) {
}
length = lengthOfArrayLike(O);
result = new (aTypedArrayConstructor(C))(length);
thisIsBigIntArray = isBigIntArray(C);
thisIsBigIntArray = isBigIntArray(result);
for (i = 0; length > i; i++) {
value = mapping ? mapfn(O[i], i) : O[i];
// FF30- typed arrays doesn't properly convert objects to typed array values
Expand Down
2 changes: 1 addition & 1 deletion packages/core-js/modules/esnext.typed-array.to-spliced.js
Expand Up @@ -47,9 +47,9 @@ exportTypedArrayMethod('toSpliced', function toSpliced(start, deleteCount /* , .
} else {
actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
insertCount = argumentsLength - 2;
thisIsBigIntArray = isBigIntArray(C);
if (insertCount) {
convertedItems = new C(insertCount);
thisIsBigIntArray = isBigIntArray(convertedItems);
for (var i = 2; i < argumentsLength; i++) {
value = arguments[i];
// FF30- typed arrays doesn't properly convert objects to typed array values
Expand Down

0 comments on commit 6ca3e61

Please sign in to comment.