Pass level to var resolver.

This commit is contained in:
Stephen Chung
2022-02-04 22:16:12 +08:00
parent 5aee06674f
commit 936dc01e39
3 changed files with 12 additions and 7 deletions

View File

@@ -673,7 +673,7 @@ impl Engine {
self.inc_operations(&mut global.num_operations, *var_pos)?;
let (mut target, _) =
self.search_namespace(scope, global, state, lib, this_ptr, lhs)?;
self.search_namespace(scope, global, state, lib, this_ptr, lhs, level)?;
let obj_ptr = &mut target;
let root = (x.2.as_str(), *var_pos);