mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-15 00:18:06 -05:00
Support more static expressions
This commit is contained in:
@@ -396,7 +396,7 @@ pub fn op_optional_chain(left: &mut Val, right: &Val) -> Result<Val, Val> {
|
||||
};
|
||||
}
|
||||
|
||||
fn to_i32(x: f64) -> i32 {
|
||||
pub fn to_i32(x: f64) -> i32 {
|
||||
if x == f64::INFINITY {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user