If a calculation throws an error, the defaultIfError option is used as the property value instead, which has a default value of null. This isn't a valid value for list-valued properties, and it results in an error: "Cannot read property 'length' of null".
Should we...
- Use the property default instead?
- Use a data-type default?
- Use
[] for list-valued properties, and null for others?
On a related note, it might be good for canSetValue to return false if you try to set a list-valued property to null (since that will also result in cryptic unhandled errors for the same reason).
If a calculation throws an error, the
defaultIfErroroption is used as the property value instead, which has a default value ofnull. This isn't a valid value for list-valued properties, and it results in an error: "Cannot read property 'length' of null".Should we...
[]for list-valued properties, andnullfor others?On a related note, it might be good for
canSetValueto return false if you try to set a list-valued property to null (since that will also result in cryptic unhandled errors for the same reason).