forked from AbleScript/ablescript
Fixed #13
This commit is contained in:
parent
d9e6dc4e36
commit
e1c20c0e8a
|
@ -129,10 +129,12 @@ impl<H: HostInterface> ExecEnv<H> {
|
|||
}),
|
||||
}?;
|
||||
|
||||
for block in std::mem::take(&mut self.finalisers) {
|
||||
self.eval_stmts_hs(&block, true)?;
|
||||
while self.finalisers.len() != 0 {
|
||||
for block in std::mem::take(&mut self.finalisers) {
|
||||
self.eval_stmts_hs(&block, true)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue