From 4752e205dc84df8b41cd6dbc7282f85a38a89e8e Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 5 Dec 2015 19:40:30 -0800 Subject: coerce call arguments in wasm2asm --- test/unit.2asm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/unit.2asm.js b/test/unit.2asm.js index cc69449e7..f85c89f0c 100644 --- a/test/unit.2asm.js +++ b/test/unit.2asm.js @@ -61,7 +61,7 @@ function asmFunc() { function conversions() { var i = 0, d = 0.0; { - i = f64_to_int(d) | 0; + i = f64_to_int(+d) | 0; d = +i; d = +((i >>> 0 | 0) >>> 0); } @@ -100,7 +100,7 @@ function asmFunc() { } function frem() { - return +f64_rem(5.5, 1.2); + return +f64_rem(+(5.5), +(1.2)); } function big_uint_div_u() { @@ -144,7 +144,7 @@ function asmFunc() { var x = Math_fround(0); { x = Math_fround(-x); - FUNCTION_TABLE[(1 & 7 | 0) + 8 | 0](x); + FUNCTION_TABLE[(1 & 7 | 0) + 8 | 0](Math_fround(x)); } } -- cgit v1.2.3