tvl-depot/tvix/eval/src/compiler
sterni 162e21f2bb fix(tvix/eval): force left argument of ? before checking for attrs
OpAttrsIsSet and OpAttrsTrySelect will fail silently if the attribute
set value on the stack is actually a thunk, so we need to make sure to
force at every step of the way.

Emitting the force instructions in the compiler because it is easier to
add, but maybe the VM should do this when handling the relevant opcodes?
Comments welcome.

Change-Id: I65c5ef348d59b2d07c9bb06abb24f9f3e6a0fdb2
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6540
Reviewed-by: grfn <grfn@gws.fyi>
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2022-09-13 22:06:29 +00:00
..
attrs.rs fix(tvix/eval): force left argument of ? before checking for attrs 2022-09-13 22:06:29 +00:00
mod.rs fix(tvix/eval): force exprs inside string interpolation 2022-09-13 22:06:28 +00:00
scope.rs chore(tvix/eval): do not inherit scope depth in new scopes 2022-09-13 14:41:57 +00:00