Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit 30ed96e

Browse files
author
Daniel Ehrenberg
authored
Merge pull request #190 from tjcrowder/feature/fix-issue-189
Don't pass key as unregister token
2 parents d6c714f + 94a5ad2 commit 30ed96e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ function makeWeakCached(f) {
207207

208208
const fresh = f(key);
209209
cache.set(key, new WeakRef(fresh));
210-
cleanup.register(fresh, key, key);
210+
cleanup.register(fresh, key);
211211
return fresh;
212212
};
213213
}

0 commit comments

Comments
 (0)