Since the JSON replacer function removes undefined values, it is incorrect to assume that the cause property will always exist in a serialised AbstractError. Thus, this was removed from the checking done in fromJSON.
Tasks
[x] 1. Remove check for cause property in fromJSON in AbstractError
[x] 2. Add documentation for replacer regarding the removal of undefined properties
Description
Since the JSON
replacer
function removes undefined values, it is incorrect to assume that thecause
property will always exist in a serialisedAbstractError
. Thus, this was removed from the checking done infromJSON
.Tasks
cause
property infromJSON
inAbstractError
replacer
regarding the removal of undefined propertiesFinal checklist