Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.

Commit

Permalink
Corrected usage of ..args, fixes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
jayphelps committed Jul 27, 2015
1 parent fe7ded2 commit 8d053e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deprecate.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ function handleDescriptor(target, key, descriptor, [msg = DEFAULT_MSG, options =
};
}

export default function deprecate(args) {
return decorate(handleDescriptor, ...args);
export default function deprecate(...args) {
return decorate(handleDescriptor, args);
}

0 comments on commit 8d053e6

Please sign in to comment.