Open NTillmann opened 6 years ago
One thing to consider here is that React elements should not be considered frozen objects. They are a different category of objects that are considered “frozenish”. They should never emit Object.freeze calls but we still know that they’re immutable.
I think that’s the source of confusion here.
In the havoc implementation, frozen objects are currently excluded: https://github.com/facebook/prepack/blob/679b7d092e2adcef615004628820c78fa7be728c/src/utils/havoc.js#L172
This is not working as intended, as frozen objects might not be fully rehydrated by the serialized code. The following failing test case illustrates this.
Other things to consider: