Avoid cloning in array methods as much as possible.

This commit is contained in:
Stephen Chung
2021-10-19 19:57:15 +08:00
parent 9d1ab2c8a1
commit 2334cd8f56
7 changed files with 296 additions and 192 deletions

View File

@@ -130,7 +130,7 @@ impl FnPtr {
}
args.extend(arg_values.iter_mut());
ctx.call_fn_dynamic_raw(self.fn_name(), is_method, &mut args)
ctx.call_fn_raw(self.fn_name(), is_method, is_method, &mut args)
}
}