Not really, because the goal is that obj is replaced by a different instance, not to change its type.
Become can swap two objects that are exactly of the same type, where the prototype change would be a null operation, achieving nothing.
Become can swap two objects that are exactly of the same type, where the prototype change would be a null operation, achieving nothing.
Could you provide real life scenario when you will need that?
I mean to change all references to the object in the heap at runtime ...