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:
parent
d1b7e08726
commit
d4cb83d58b
3 changed files with 17 additions and 7 deletions
|
|
@ -0,0 +1 @@
|
|||
{ success = false; value = false; }
|
||||
|
|
@ -0,0 +1 @@
|
|||
builtins.tryEval (builtins.genericClosure { operator = (_: [{ key = throw "lol"; }]); startSet = [{ key = "lol"; }]; })
|
||||
Loading…
Add table
Add a link
Reference in a new issue