Skip to content

Commit

Permalink
Merge pull request #19692 from mydea/fn/fix-assign
Browse files Browse the repository at this point in the history
Fix assign polyfill
  • Loading branch information
rwjblue authored Aug 2, 2021
2 parents 560751f + edb3914 commit b5026b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@ember/polyfills/lib/assign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function assign(target: object, ...sources: object[]): object;
@public
@static
*/
export function assign(target: object): object {
export function assign(target: object, ...rest: object[]): object {
deprecate(
'Use of `assign` has been deprecated. Please use `Object.assign` or the spread operator instead.',
false,
Expand All @@ -44,5 +44,5 @@ export function assign(target: object): object {
}
);

return Object.assign(target, ...arguments);
return Object.assign(target, ...rest);
}

0 comments on commit b5026b8

Please sign in to comment.