Merge restore_state and rewind_scope.

This commit is contained in:
Stephen Chung
2021-12-28 17:50:49 +08:00
parent 5b667a69b7
commit cbaf095c7a
4 changed files with 26 additions and 36 deletions

View File

@@ -684,7 +684,7 @@ impl Engine {
level: usize,
) -> RhaiResult {
self.eval_stmt_block(
scope, global, state, lib, &mut None, statements, false, false, level,
scope, global, state, lib, &mut None, statements, false, level,
)
.or_else(|err| match *err {
ERR::Return(out, _) => Ok(out),