Fix assert fail if object literal key is not a string (fix #953)

This commit is contained in:
David Tolnay committed 2015-09-21 12:47:06 -07:00
1 parent 83ab4e273b
commit 154d0ee4a8
5 files changed
+455 -399

No files matched your search

+8
View File
@@ -105,6 +105,14 @@ null
{"a":1, "b":2, "c":3, "a$2":4}
{"a":1, "b":2, "a$2":4}
%%FAIL
{(0):1}
jq: error: Cannot use number (0) as object key at <top-level>, line 1:
%%FAIL
{non_const:., (0):1}
jq: error: Cannot use number (0) as object key at <top-level>, line 1:
#
# Field access, piping
#