diff options
| author | Stephen Blott | 2015-06-20 09:54:17 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2015-06-20 09:54:17 +0100 | 
| commit | b09822eb349ec88a573d4f450e9b57e8fa3c6473 (patch) | |
| tree | 0cabb553db04d2d43b2c5472ec7fed9adc576121 /background_scripts | |
| parent | 1e671e28fd1f348b17ee16351c1a0b03f9d15e4f (diff) | |
| download | vimium-b09822eb349ec88a573d4f450e9b57e8fa3c6473.tar.bz2 | |
Fix SimpleCache bugs.
This fixes two bugs in SimpleCache.
1. Rotate the cache on the next tick.  There is a marginally small
   chance that the cache will rotate between calls to .has() and .get().
   So, we do the rotation ansynchronously.  This guarantees that these
   two functions will always see the same cache state.
2. The implementation of .clear() (which is unused, I think) has at some
   point become out of date (and incorrect) w.r.t. the implementation of
   .rotate().
Diffstat (limited to 'background_scripts')
0 files changed, 0 insertions, 0 deletions
