Convert for loop to iterator.

This commit is contained in:
Stephen Chung
2021-11-15 14:30:00 +08:00
parent de906053ed
commit 98707912e0
6 changed files with 115 additions and 131 deletions

View File

@@ -2029,11 +2029,6 @@ impl Engine {
0,
);
// Remove arguments
if !rewind_scope && !args.is_empty() {
scope.remove_range(orig_scope_len, args.len())
}
result
}
/// Optimize the [`AST`] with constants defined in an external Scope.