Skip to content

Commit

Permalink
memoize3: Explicitly pass arguments (#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 21, 2019
1 parent 58832ae commit 41742d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsutils/memoize3.js
Expand Up @@ -36,7 +36,7 @@ export default function memoize3<T: (a1: any, a2: any, a3: any) => any>(
cache2 = new WeakMap();
cache1.set(a2, cache2);
}
const newValue = fn.apply(this, arguments);
const newValue = fn(a1, a2, a3);
cache2.set(a3, newValue);
return newValue;
}
Expand Down

0 comments on commit 41742d4

Please sign in to comment.