Use WeakMap for WI cache

This commit is contained in:
Cohee 2024-06-22 14:43:15 +03:00
parent 6c9f3a868d
commit b4559d3fd8
1 changed files with 2 additions and 2 deletions

View File

@ -334,9 +334,9 @@ class WorldInfoBuffer {
class WorldInfoTimedEvents { class WorldInfoTimedEvents {
/** /**
* @type {Map<WIScanEntry, number>} Cache for entry hashes * @type {WeakMap<WIScanEntry, number>} Cache for entry hashes
*/ */
static #entryHashCache = new Map(); static #entryHashCache = new WeakMap();
/** /**
* @type {string[]} Array of chat messages * @type {string[]} Array of chat messages