Skip to content

Commit

Permalink
remove varargs from std serialiser
Browse files Browse the repository at this point in the history
  • Loading branch information
Alorel committed Mar 12, 2019
1 parent 227a7e9 commit b0a921e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const ERR_NOT_A_METHOD = '@Memoise can only decorate methods';

const ROOT: unique symbol = Symbol('@Memoise cache');

const stdSerialiser: SerFn = function (...args: any[]): string {
return JSON.stringify(args);
const stdSerialiser: SerFn = function (): string {
return JSON.stringify(arguments);
};

function resolveCache(instance: any, methodSym: symbol): any {
Expand Down

0 comments on commit b0a921e

Please sign in to comment.