Fix sync feature.

This commit is contained in:
Stephen Chung
2020-08-08 17:04:21 +08:00
parent 5a1a141ce3
commit f68c5a699d
4 changed files with 8 additions and 8 deletions

View File

@@ -926,7 +926,7 @@ impl Engine {
.map_err(|err| err.new_position(pos))?;
args = if target.is_shared() {
arg_values.insert(0, target.get_inner_clone());
arg_values.insert(0, target.flatten_clone());
arg_values.iter_mut().collect()
} else {
// Turn it into a method call only if the object is not shared