runtime, vm: write thunk results back to the forcing stack slot

This commit is contained in:
2026-08-22 19:05:13 +08:00
parent 0c0e1849ae
commit 5a06fb4c1e
8 changed files with 43 additions and 17 deletions
+2
View File
@@ -41,6 +41,7 @@ pub(crate) fn op_lookup_with<'gc, M: Machine<'gc>>(
thunk: Some(thunk),
pc: resume_pc,
env: m.env(),
depth: None,
});
m.set_env(env);
reader.set_pc(ip);
@@ -52,6 +53,7 @@ pub(crate) fn op_lookup_with<'gc, M: Machine<'gc>>(
thunk: Some(thunk),
pc: resume_pc,
env: m.env(),
depth: None,
});
m.push(func);
return m.call(reader, mc, arg, resume_pc);