Closed igalklebanov closed 2 years ago
Currently, executing a memoized function with no arguments keeps filling k with {} (arguments) items and v with results of each arg-less invocation, instead of caching. Basically a memory leak.
k
{}
arguments
v
One would expect vArgs to work with 0 args, as well.
@anywhichway thanks! can you please publish a patch version with these changes?
@igalklebanov v1.3.1 published to NPM. Thanks for the improvements.
Currently, executing a memoized function with no arguments keeps filling
k
with{}
(arguments
) items andv
with results of each arg-less invocation, instead of caching. Basically a memory leak.One would expect vArgs to work with 0 args, as well.