Fix builds.

This commit is contained in:
Stephen Chung
2022-11-08 21:41:00 +08:00
parent e93923b3b6
commit ae1e19c98a
4 changed files with 11 additions and 21 deletions

View File

@@ -730,12 +730,11 @@ impl Engine {
// Check variable definition filter
if let Some(ref filter) = self.def_var_filter {
let will_shadow = scope.contains(var_name);
let nesting_level = global.scope_level;
let is_const = access == AccessMode::ReadOnly;
let info = VarDefInfo {
name: var_name,
is_const,
nesting_level,
nesting_level: global.scope_level,
will_shadow,
};
let context = EvalContext::new(self, global, caches, lib, scope, this_ptr);