Skip to content

Commit

Permalink
Fix assign polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Aug 2, 2021
1 parent 560751f commit edb3914
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 edb3914

Please sign in to comment.