Get placeholder error on del/1 function
itchyny opened this issue · comments
❯ jq -n '{x:[1]} | del(.x[0],.x)'
{}
❯ xq -n '{x:[1]} | del(.x[0],.x)'
Error: IndexOnNonIndexable("placeholder")
More cases to test:
$ jq -n '{x:[1]} | del(.x.y, .x[0], .x)'
jq: error (at <unknown>): Cannot index array with string "y"
[2] 563536 exit 5 jq -n '{x:[1]} | del(.x.y, .x[0], .x)'
$ jq -n '{x:[1]} | del(.x[0], .x.y, .x)'
jq: error (at <unknown>): Cannot index array with string "y"
[2] 563544 exit 5 jq -n '{x:[1]} | del(.x[0], .x.y, .x)'
and nested slices.