diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-12-07 15:50:59 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-12-07 15:50:59 -0800 |
commit | 7c506037b668d4d4cc7c21534da4b325d3eae36c (patch) | |
tree | f70b0f63ab0e53e9ca58d717730ff46456be4f12 /test/unit.asm.js | |
parent | e7e2fe18e406aae3cade9200884014eda1f41f51 (diff) | |
download | binaryen-7c506037b668d4d4cc7c21534da4b325d3eae36c.tar.gz binaryen-7c506037b668d4d4cc7c21534da4b325d3eae36c.tar.bz2 binaryen-7c506037b668d4d4cc7c21534da4b325d3eae36c.zip |
fix unit.asm.js testcase, table contained a method of the wrong type
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r-- | test/unit.asm.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js index cef639837..c69428a05 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -112,6 +112,10 @@ function () { x = -x; FUNCTION_TABLE_c[1 & 7](x); } + function cneg(x) { + x = Math_fround(x); + FUNCTION_TABLE_c[1 & 7](x); + } function ___syscall_ret() { var $0 = 0; ($0>>>0) > 4294963200; // -4096 @@ -124,7 +128,7 @@ function () { var FUNCTION_TABLE_a = [ z, big_negative, z, z ]; var FUNCTION_TABLE_b = [ w, w, importedDoubles, w ]; - var FUNCTION_TABLE_c = [ z, neg ]; + var FUNCTION_TABLE_c = [ z, cneg ]; return { big_negative: big_negative }; } |