Change fast_ops to options.

This commit is contained in:
Stephen Chung
2022-09-03 15:15:42 +08:00
parent 43c4d7e3ca
commit 06dea067b7
8 changed files with 53 additions and 48 deletions

View File

@@ -228,8 +228,7 @@ impl Engine {
..
} = expr;
#[cfg(feature = "fast_ops")]
if *std_ops {
if *std_ops && self.fast_operators() {
let mut lhs = self
.get_arg_value(scope, global, caches, lib, this_ptr, &args[0], level)?
.0