summaryrefslogtreecommitdiff
path: root/test/unit.asm.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-12-07 15:50:59 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-12-07 15:50:59 -0800
commit7c506037b668d4d4cc7c21534da4b325d3eae36c (patch)
treef70b0f63ab0e53e9ca58d717730ff46456be4f12 /test/unit.asm.js
parente7e2fe18e406aae3cade9200884014eda1f41f51 (diff)
downloadbinaryen-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.js6
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 };
}