diff options
author | Shay Bergmann <shaybergmann@gmail.com> | 2021-10-26 14:43:15 +0000 |
---|---|---|
committer | Shay Bergmann <shaybergmann@gmail.com> | 2021-10-26 14:43:15 +0000 |
commit | 769de259f0060d55ec8317c109cf12aa4003f7fe (patch) | |
tree | efe13edcc4ce35248217a39f68ef4f8294b93cf9 /src/libexpr | |
parent | ba81e871b2b3a034f3e2eaa5242c98e2f253cdd5 (diff) |
toJSON: pass pos in case of a list as well
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/value-to-json.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/value-to-json.cc b/src/libexpr/value-to-json.cc index 7c28754f5..1c3849593 100644 --- a/src/libexpr/value-to-json.cc +++ b/src/libexpr/value-to-json.cc @@ -65,7 +65,7 @@ void printValueAsJSON(EvalState & state, bool strict, auto list(out.list()); for (unsigned int n = 0; n < v.listSize(); ++n) { auto placeholder(list.placeholder()); - printValueAsJSON(state, strict, *v.listElems()[n], noPos, placeholder, context); + printValueAsJSON(state, strict, *v.listElems()[n], pos, placeholder, context); } break; } |