Reduce size of ParseState.

This commit is contained in:
Stephen Chung
2022-11-24 17:08:43 +08:00
parent b4ef89b596
commit c9d8714fe6
7 changed files with 211 additions and 242 deletions

View File

@@ -124,7 +124,7 @@ impl Engine {
let (stream, tokenizer_control) =
self.lex_raw(&scripts, self.token_mapper.as_ref().map(<_>::as_ref));
let mut state = ParseState::new(self, scope, interned_strings, tokenizer_control);
let mut state = ParseState::new(scope, interned_strings, tokenizer_control);
// No need to optimize a lone expression
self.parse_global_expr(