Closed tjgionet closed 5 years ago
we're breaking immutability, which we should definitely not do. however, making the objects clones by default would force them into being serializable (i believe, i dont think you can deep copy a function bound to a context) which would mean breaking services.
The way I get around ever dealing with this issue is using object literals for nearly every send, and being very cautious when i dont.
I completely understand and we can have this conversation this afternoon at the round table.
So here we will make the object immutable/non-referential to any object defined outside the this.send scope.
Closed with PR #94
DestA may not receive the command, as the internal destination may be changed (by the second send function) before sending is complete