Let error(null) throw null
Before adoption: this commit came in with the history the project adopted, so no landing records it.
This patch removes the weird behaviour of jv_invalid_with_msg(jv_null()) that returns jv_invalid() (i.e. empty), instead of a boxed jv_null(). The previous behaviour of null|error was obviously unintentional, and allowing is jv_invalid_with_msg() to return values on which you can't call jv_invalid_get_msg() is only error prone.
authored by Emanuele Torre · committed by Nico Williams · parent 3b6e7dd · Browse files · 4 files+4 added−15 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+4 added−15 removed
- tests:+4 added−6 removed
- other:+0 added−9 removed