1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

* Implemented tryEval, the last missing primop in the fast-eval

branch.  Also added a test for tryEval.
This commit is contained in:
Eelco Dolstra 2010-05-12 11:23:44 +00:00
parent 1a8eb6e3ec
commit 81a4b4e49b
3 changed files with 12 additions and 12 deletions

View file

@ -0,0 +1 @@
{ x = { value = "x"; success = true; }; y = { value = false; success = false; }; z = { value = false; success = false; }; }

View file

@ -0,0 +1,5 @@
{
x = builtins.tryEval "x";
y = builtins.tryEval (assert false; "y");
z = builtins.tryEval (throw "bla");
}