Fix wmap_compact from potentially corrupting ST table
Since we hash by the address of the key in the WeakMap, we cannot change the key in the same entry because deleting the key could require hashing.
This commit changes it to allocate and insert a new entry if the key has moved.
Fix wmap_compact from potentially corrupting ST table
Since we hash by the address of the key in the WeakMap, we cannot change
the key in the same entry because deleting the key could require hashing.
This commit changes it to allocate and insert a new entry if the key has
moved.