about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-test-catchables-in-implications.nix
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-12-12T06·41-0800
committerclbot <clbot@tvl.fyi>2023-12-12T15·47+0000
commitedf411a86cddecc953ef4be621ae527d5269a800 (patch)
tree031550394d2af011dacb0bb60d331b3529222c82 /tvix/eval/src/tests/tvix_tests/eval-okay-test-catchables-in-implications.nix
parent24ff74d3463fd85077acfb211b4b32677e18db6e (diff)
fix(tvix/eval): fix recovering from throws in implications r/7180
This fixes b/345.

Change-Id: Ic0d3b6ffacd2a5e0050d22354d08320b69a4fe13
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10290
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: Adam Joseph <adam@westernsemico.com>
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-test-catchables-in-implications.nix')
-rw-r--r--tvix/eval/src/tests/tvix_tests/eval-okay-test-catchables-in-implications.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-test-catchables-in-implications.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-test-catchables-in-implications.nix
new file mode 100644
index 000000000000..126738d88329
--- /dev/null
+++ b/tvix/eval/src/tests/tvix_tests/eval-okay-test-catchables-in-implications.nix
@@ -0,0 +1 @@
+(builtins.tryEval (({ foo ? throw "up" }: foo -> true) { })).success