about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-toplevel-finaliser.exp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-09-08 r/4762 fix(tvix/eval): consider local depth when deciding to deferVincent Ambo1-0/+1
Deferred local upvalues can *only* occur at the same depth as the thing that is closing over them, but there are various situations with scope nesting where the actual stack indexes of the local and the closer look like a deferred value is being accessed. To fix this, simply compare the depth as well. Change-Id: Ice77424cc87ab0a2c4f01379e68d4399a917b12b Reviewed-on: https://cl.tvl.fyi/c/depot/+/6429 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI