Remove downcast_XXX from Variant.

This commit is contained in:
Stephen Chung
2020-05-03 22:17:28 +08:00
parent 68732a6e47
commit 3d05cc96cd
2 changed files with 45 additions and 57 deletions

View File

@@ -828,7 +828,7 @@ impl Engine {
self.get_indexed_mut(obj, id.to_string().into(), *pos, op_pos, false)?;
Ok((indexed_val.clone_into_dynamic(), false))
}
// xxx.id = ???
// xxx.id = ??? a
Expr::Property(id, pos) if new_val.is_some() => {
let fn_name = make_setter(id);
let mut args = [obj, new_val.as_mut().unwrap()];