Keep track of used labels

This commit is contained in:
ahocevar
2019-01-22 21:00:21 +01:00
parent ea45068335
commit 592b6cf362
11 changed files with 150 additions and 37 deletions
+2 -1
View File
@@ -114,9 +114,10 @@ class LRUCache extends EventTarget {
/**
* @param {string} key Key.
* @param {*=} opt_options Options (reserverd for subclasses).
* @return {T} Value.
*/
get(key) {
get(key, opt_options) {
const entry = this.entries_[key];
assert(entry !== undefined,
15); // Tried to get a value for a key that does not exist in the cache