Fix builds.

This commit is contained in:
Stephen Chung 2022-09-27 23:08:27 +08:00
parent fde8483f54
commit 82b64e9c7a

View File

@ -314,17 +314,20 @@ impl Engine {
} }
// idx_lhs[idx_expr] op= rhs // idx_lhs[idx_expr] op= rhs
#[cfg(not(feature = "no_index"))] #[cfg(not(feature = "no_index"))]
Expr::Index(..) => self.eval_dot_index_chain( Expr::Index(..) => self
.eval_dot_index_chain(
scope, global, caches, lib, this_ptr, lhs, level, _new_val, scope, global, caches, lib, this_ptr, lhs, level, _new_val,
), )
.map(|_| Dynamic::UNIT),
// dot_lhs.dot_rhs op= rhs // dot_lhs.dot_rhs op= rhs
#[cfg(not(feature = "no_object"))] #[cfg(not(feature = "no_object"))]
Expr::Dot(..) => self.eval_dot_index_chain( Expr::Dot(..) => self
.eval_dot_index_chain(
scope, global, caches, lib, this_ptr, lhs, level, _new_val, scope, global, caches, lib, this_ptr, lhs, level, _new_val,
), )
.map(|_| Dynamic::UNIT),
_ => unreachable!("cannot assign to expression: {:?}", lhs), _ => unreachable!("cannot assign to expression: {:?}", lhs),
} }
.map(|_| Dynamic::UNIT)
} else { } else {
rhs_result rhs_result
} }