Fix nesting try/catch inside internal errors
This commit is contained in:
1 parent
bda75c3142
commit
e74eab828e
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -1038,7 +1038,7 @@ block gen_try_handler(block handler) {
|
|||||||
return gen_cond(// `if type=="object" and .__jq
|
return gen_cond(// `if type=="object" and .__jq
|
||||||
gen_and(gen_call("_equal",
|
gen_and(gen_call("_equal",
|
||||||
BLOCK(gen_lambda(gen_const(jv_string("object"))),
|
BLOCK(gen_lambda(gen_const(jv_string("object"))),
|
||||||
gen_lambda(gen_noop()))),
|
gen_lambda(gen_call("type", gen_noop())))),
|
||||||
BLOCK(gen_subexp(gen_const(jv_string("__jq"))),
|
BLOCK(gen_subexp(gen_const(jv_string("__jq"))),
|
||||||
gen_noop(),
|
gen_noop(),
|
||||||
gen_op_simple(INDEX))),
|
gen_op_simple(INDEX))),
|
||||||
|
|||||||
@@ -1712,3 +1712,7 @@ false
|
|||||||
.x - 10
|
.x - 10
|
||||||
{"x":13911860366432393}
|
{"x":13911860366432393}
|
||||||
13911860366432382
|
13911860366432382
|
||||||
|
|
||||||
|
. |= try . catch .
|
||||||
|
1
|
||||||
|
1
|
||||||
Reference in new issue
Block a user