Update Binaryen to latest; Various fixes

This commit is contained in:
Daniel Wirtz
2018-10-11 08:49:08 +02:00
committed by GitHub
parent b54a97c0fe
commit f7c734789e
228 changed files with 12372 additions and 14996 deletions

View File

@ -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