Use fast operators mode in rhai-run.
This commit is contained in:
@@ -228,6 +228,7 @@ impl Engine {
|
||||
..
|
||||
} = expr;
|
||||
|
||||
// Short-circuit operator call if under Fast Operators mode
|
||||
if *std_ops && self.fast_operators() {
|
||||
let mut lhs = self
|
||||
.get_arg_value(scope, global, caches, lib, this_ptr, &args[0], level)?
|
||||
|
Reference in New Issue
Block a user