Do not test for op-assignment when not ending with '='.

This commit is contained in:
Stephen Chung 2021-02-24 11:05:16 +08:00
parent 71680e3c77
commit 8b67a9a9bc

View File

@ -295,7 +295,7 @@ impl Engine {
None => (),
}
if is_ref {
if is_ref && fn_name.ends_with('=') {
let (first, second) = args.split_first_mut().unwrap();
match run_builtin_op_assignment(fn_name, first, second[0])? {