From b4559d3fd82e6a3e225ea65e268dec632ca7fc02 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 22 Jun 2024 14:43:15 +0300 Subject: [PATCH] Use WeakMap for WI cache --- public/scripts/world-info.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/world-info.js b/public/scripts/world-info.js index 93f13a57e..db8b1d29b 100644 --- a/public/scripts/world-info.js +++ b/public/scripts/world-info.js @@ -334,9 +334,9 @@ class WorldInfoBuffer { class WorldInfoTimedEvents { /** - * @type {Map} Cache for entry hashes + * @type {WeakMap} Cache for entry hashes */ - static #entryHashCache = new Map(); + static #entryHashCache = new WeakMap(); /** * @type {string[]} Array of chat messages