This commit is contained in:
Erin 2022-09-14 21:50:04 +02:00 committed by ondra05
parent a9fdff0663
commit 9803a393d4

View file

@ -129,8 +129,10 @@ impl<H: HostInterface> ExecEnv<H> {
}), }),
}?; }?;
for block in std::mem::take(&mut self.finalisers) { while self.finalisers.len() != 0 {
self.eval_stmts_hs(&block, true)?; for block in std::mem::take(&mut self.finalisers) {
self.eval_stmts_hs(&block, true)?;
}
} }
Ok(()) Ok(())