Refine data structures.

This commit is contained in:
Stephen Chung
2022-05-07 15:54:44 +08:00
parent fc64e93b93
commit 4194e2c048
8 changed files with 59 additions and 41 deletions

View File

@@ -119,8 +119,8 @@ impl Engine {
},
);
let scope = &Scope::new();
let mut state = ParseState::new(self, scope, tokenizer_control);
let scope = Scope::new();
let mut state = ParseState::new(self, &scope, tokenizer_control);
let ast = self.parse_global_expr(
&mut stream.peekable(),