Allow non-Dynamic in return_raw.
This commit is contained in:
@@ -109,7 +109,7 @@ pub fn get_builtin_binary_op_fn(
|
||||
return Some(|_, args| {
|
||||
let x = args[0].$xx().unwrap() as $base;
|
||||
let y = args[1].$yy().unwrap() as $base;
|
||||
$func(x, y)
|
||||
$func(x, y).map(Into::<Dynamic>::into)
|
||||
})
|
||||
};
|
||||
(from $base:ty => $xx:ident $op:tt $yy:ident) => {
|
||||
|
Reference in New Issue
Block a user