1
1
mirror of https://github.com/wader/fq.git synced 2024-09-11 12:05:39 +03:00

Merge pull request #892 from wader/eval-error-in-path

interp: Add todo test for eval error in path
This commit is contained in:
Mattias Wadman 2024-03-10 10:12:16 +01:00 committed by GitHub
commit 79e7c71c73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

5
pkg/interp/testdata/path.fqtest vendored Normal file
View File

@ -0,0 +1,5 @@
# TODO: possibly fix this in the future. the eval wrapper in it's eval
# error path currently builds a new object and indexes into it which
# makes gojq eval bail out when in "path"-mode
$ fq -n 'try path(eval("error")) catch .'
"invalid path against: object ({\"error\":null,\"input\":null})"