about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-to-json-propagate-catchable.nix
blob: 8ae5e48e97376a9d1422cc0bb1b8625c4f8a241b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
map (e: (builtins.tryEval (builtins.toJSON e)).success) [
  (builtins.throw "a")
  {
    a = builtins.throw "attribute a";
  }
  {
    a.b.c.d.e.f.g.h.i = builtins.throw "deep i";
  }
  {
    x = 32;
    y = builtins.throw "second argument";
  }
  # FIXME(raitobezarius): we would like to test coercions, i.e. `toFile` and `derivation` containing throwables.
]