Skip to main content

numeric_hook

Function numeric_hook 

Source
pub fn numeric_hook(op: NumOp, a: &Value, b: &Value) -> Result<Value, String>
Expand description

Host callback for arithmetic fusevm cannot complete natively (a non-Int/ non-Float operand). Supplies JavaScript + concatenation and coercion.