forked from emberjs/ember.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In emberjs#13829, we introduced the ability to pass a custom key function for the cache. However, we are incorrectly passing `(key, value)` to `set` when the function expects `(obj, value)`. This is causing problems for caches that uses a custom cache keying function (such as Glimmer's compilation cache), because the get side would handle the keying correctly, but the set side would compute the key based on the already-computed key (i.e. `this.key(this.key(obj))`). In Glimmer's compilation cache, this is causing the cache to always miss because the `set` side would cache everything under the `"undefined"` key.
- Loading branch information
Godhuda
committed
Jul 29, 2016
1 parent
9987406
commit 80f0462
Showing
2 changed files
with
66 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters