Make null + foo return foo, rather than an error.

This also allows 'add' to be implemented in jq rather than C.
This commit is contained in:
Stephen Dolan committed 2012-12-29 16:52:26 +00:00
1 parent d5fdf70434
commit e0cda536f3
3 files changed
+29 -18

No files matched your search

+12
View File
@@ -205,6 +205,18 @@ null
15
19.0
.+null
{"a":42}
{"a":42}
null+.
null
null
.a+.b
{"a":42}
42
[1,2,3] + [.]
null
[1,2,3,null]