mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-19 18:01:31 +00:00
Update Binaryen to latest; Various fixes
This commit is contained in:
@ -1985,13 +1985,11 @@ assert(test_minf(-1.75, -0.5, -1.75, 0.0, 0));
|
||||
// Math.mod
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
declare namespace JSOp {
|
||||
export function mod(x: f64, y: f64): f64;
|
||||
}
|
||||
declare function mod(x: f64, y: f64): f64;
|
||||
|
||||
function test_mod(left: f64, right: f64, expected: f64, error: f64, flags: i32): bool {
|
||||
return check<f64>(NativeMath.mod(left, right), expected, error, flags) &&
|
||||
(!js || check<f64>( JSOp.mod(left, right), expected, error, flags));
|
||||
(!js || check<f64>( mod(left, right), expected, error, flags));
|
||||
}
|
||||
|
||||
// sanity
|
||||
|
Reference in New Issue
Block a user