It would be nice to have a new diff type indicator for mismatched constructors.
kind: 'C'
path, is set as they would be for 'E' differences
lhs is the value of the lhs item's constructor.name property
rhs as with lhs
index and item are unused
Example:
function Something(value) { this.value = value; }
var lhs = new Something('foo');
var rhs = { value: 'foo' };
It would be nice to have a new diff type indicator for mismatched constructors.
kind: 'C' path, is set as they would be for 'E' differences lhs is the value of the lhs item's
constructor.name
property rhs as with lhs index and item are unusedExample:
Diffing the two would produce: