Skip to content

Commit

Permalink
Fix __spreadArray for non-concat-spreadables
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Aug 9, 2021
1 parent 0b93014 commit dc0616a
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 dc0616a

Please sign in to comment.