Open PopGoesTheWza opened 4 years ago
Yeah, you're right. It should handle the first undefined
argument.
I can PR this (provided I get branching rights)
I think I have provided all the member the Write access to all stampit-org repos few minutes ago. Could you please check if I did it right?
It looks ok now. Thanks.
Current implementation of
@stamp/core/mergeOne()
does not fully check if its first parameterdst
isundefined
. If the second parametersrc
is an object,dst
is never checked and assumed to be an array/object and thus aTypeError: Cannot read property 'foo' of undefined
is thrown.stamp/packages/collision/index.js
line 33This issue is triggered by unit tests and
standardiseDescriptor()
(inpackages/it/index.js
lines:41, 47 and 56This issue relates with #52