Map.get returns undefined and not null on empty

This commit is contained in:
Honey Tree
2024-10-10 11:44:13 -03:00
parent 7fd798b854
commit 0d1e96cc17

View File

@ -313,7 +313,7 @@ class WorldInfoBuffer {
/** /**
* Get the externally activated version of the entry, if there is one. * Get the externally activated version of the entry, if there is one.
* @param {object} entry WI entry to check * @param {object} entry WI entry to check
* @returns {object|null} the external version if the entry is forcefully activated, null otherwise * @returns {object|undefined} the external version if the entry is forcefully activated, undefined otherwise
*/ */
getExternallyActivated(entry) { getExternallyActivated(entry) {
// Entries could be copied with structuredClone, so we need to compare them by string representation // Entries could be copied with structuredClone, so we need to compare them by string representation