feat(tvix/eval): emit OpFinalise when local scopes are complete

With this change, the runtime can correctly capture deferred upvalues.

Change-Id: I1e43b7b1ac2553b1812424adfc8bd08ef77bf1ea
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6339
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-08-28 17:57:52 +03:00 committed by tazjin
parent 5c4e102ac8
commit 68aad6d4cf
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,4 @@
let
f = n: n + a;
a = 2;
in f 40