fix(tvix/eval): propagate errs from key comparison in genericClosure

The accompanying test case shows that we need to bubble up the catchable
error from the equality check if one is created.

Change-Id: Ic9929a57aa7653c8aa5a72d1711cf3264798c731
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11159
Tested-by: BuildkiteCI
Autosubmit: sterni <sternenseemann@systemli.org>
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
sterni 2024-03-15 22:46:00 +01:00 committed by clbot
parent d1b7e08726
commit d4cb83d58b
3 changed files with 17 additions and 7 deletions

View file

@ -0,0 +1 @@
{ success = false; value = false; }

View file

@ -0,0 +1 @@
builtins.tryEval (builtins.genericClosure { operator = (_: [{ key = throw "lol"; }]); startSet = [{ key = "lol"; }]; })