We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bda75c3 commit e74eab8Copy full SHA for e74eab8
src/compile.c
@@ -1038,7 +1038,7 @@ block gen_try_handler(block handler) {
1038
return gen_cond(// `if type=="object" and .__jq
1039
gen_and(gen_call("_equal",
1040
BLOCK(gen_lambda(gen_const(jv_string("object"))),
1041
- gen_lambda(gen_noop()))),
+ gen_lambda(gen_call("type", gen_noop())))),
1042
BLOCK(gen_subexp(gen_const(jv_string("__jq"))),
1043
gen_noop(),
1044
gen_op_simple(INDEX))),
tests/jq.test
@@ -1712,3 +1712,7 @@ false
1712
.x - 10
1713
{"x":13911860366432393}
1714
13911860366432382
1715
+
1716
+. |= try . catch .
1717
+1
1718
0 commit comments