about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-fail-builtins-tojson-tostring-notcallable.nix
blob: 345b76fde037de2ab26630c1e402a628b5bffa8e (plain) (blame)
1
2
3
4
5
# attribute sets with a non-callable `__toString` can not be
# serialised to JSON.
builtins.toJSON {
  __toString = 42;
}