Skip to content

Commit

Permalink
Merge pull request #155 from microsoft/fixSpreadArrayForNonConcatSpre…
Browse files Browse the repository at this point in the history
…adables

Fix __spreadArray for non-concat-spreadables
  • Loading branch information
DanielRosenwasser authored Aug 11, 2021
2 parents 0b93014 + dc0616a commit ffb6938
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tslib.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function __spreadArray(to, from, pack) {
ar[i] = from[i];
}
}
return to.concat(ar || from);
return to.concat(ar || Array.prototype.slice.call(from));
}

export function __await(v) {
Expand Down
2 changes: 1 addition & 1 deletion tslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ var __createBinding;
ar[i] = from[i];
}
}
return to.concat(ar || from);
return to.concat(ar || Array.prototype.slice.call(from));
};

__await = function (v) {
Expand Down

0 comments on commit ffb6938

Please sign in to comment.