snix/tvix/eval/src/value
Vincent Ambo 0c0ae50f02 fix(tvix/eval): don't panic when printing a black hole
This could occur when the disassembler is enabled and tracing the
runtime while a thunk is being evaluated, as it would not be possible
for the *tracer* to borrow the thunk at this exact moment.

However, we know that if the borrowing fails here we are dealing with
a not-fully evaluated thunk (blackhole), which should just print the
internal representation.

Change-Id: I4bdb4f17818d55795368e3d28842048f488f0a91
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6416
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
2022-09-08 12:53:20 +00:00
..
attrs feat(tvix/eval): implement NixAttrs::iter() 2022-09-07 15:25:59 +00:00
attrs.rs feat(tvix/eval): ensure all errors always carry a span 2022-09-08 07:59:15 +00:00
builtin.rs refactor(tvix/eval): pass a VM reference to builtins 2022-09-08 07:59:15 +00:00
function.rs refactor(tvix/eval): introduce UpvalueCarrier trait 2022-09-06 14:58:52 +00:00
list.rs feat(tvix/eval): Support builtins.length 2022-09-07 20:56:02 +00:00
mod.rs refactor(tvix/eval): add macros for generating Value casters 2022-09-08 08:45:15 +00:00
string.rs chore(tvix/eval): provide 'static references to "name"/"value" 2022-09-07 15:25:59 +00:00
thunk.rs fix(tvix/eval): don't panic when printing a black hole 2022-09-08 12:53:20 +00:00