document trying mechanism

This commit is contained in:
2026-05-08 17:46:23 +08:00
parent 7401f1ba5e
commit 88a205f419
8 changed files with 56 additions and 28 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ impl<'gc> crate::Vm<'gc> {
)));
};
self.push(env);
let env = self.try_force::<Gc<AttrSet>>(reader, mc)?;
let env = self.force_and_retry::<Gc<AttrSet>>(reader, mc)?;
let Some(val) = env.lookup(name) else {
reader.set_pc(reader.inst_start_pc());
self.with_env = prev;