From 3f838fd9c42eb9408b82120a43da0caeae44963e Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 5 Mar 2016 16:28:09 -0800 Subject: harmonize ffi calls in asm2wasm, adding arguments as needed. this helps with asm ffis which tolerate overloading, unlike wasm --- test/unit.asm.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/unit.asm.js') diff --git a/test/unit.asm.js b/test/unit.asm.js index 491f90835..b9c878613 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -8,6 +8,8 @@ function asm() { var Math_abs = global.Math.abs; var Math_ceil = global.Math.ceil; + var abort = env.abort; + function big_negative() { var temp = 0.0; temp = +-2147483648; @@ -143,6 +145,11 @@ function asm() { temp = Math_fround(Math_ceil(B)); temp = Math_fround(u * Math_fround(Math_ceil(Math_fround(B)))); } + function aborts() { + abort(); + abort(55); + abort(); + } function z() { } -- cgit v1.2.3