SIGN IN SIGN UP
immerjs / immer UNCLAIMED

Create the next immutable state by mutating the current one

0 0 57 JavaScript

Fix: freezing of Map values during finalization (#1150)

Map keys are not enumerable properties of the Map object, so the propertyIsEnumerable check does not apply to them.

This commit adds a condition to detect Map objects and uses Map.prototype.has to check for key existence.

Fixes #1119.
C
Chetan Satpute committed
b4f71a6f2bdeafd24cd4669921082f8ac2e84cfc
Parent: 857b4b7
Committed by GitHub <noreply@github.com> on 9/1/2025, 6:06:46 PM