trunk
ondra05 2022-09-14 21:50:04 +02:00
parent 1bb33066ed
commit b7c9a4b74d
1 changed files with 5 additions and 3 deletions

View File

@ -129,10 +129,12 @@ 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(())
} }