summaryrefslogtreecommitdiff
path: root/test/unit.asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r--test/unit.asm.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js
index 893d29a99..721e9e8cc 100644
--- a/test/unit.asm.js
+++ b/test/unit.asm.js
@@ -14,6 +14,7 @@ function asm(global, env, buffer) {
var abort = env.abort;
var print = env.print;
var h = env.h;
+ var return_int = env.return_int;
var HEAP8 = new global.Int8Array(buffer);
var HEAP16 = new global.Int16Array(buffer);
@@ -364,6 +365,10 @@ function asm(global, env, buffer) {
Int = x;
}
+ function dropCallImport() {
+ if (1) return_int() | 0;
+ }
+
var FUNCTION_TABLE_a = [ z, big_negative, z, z ];
var FUNCTION_TABLE_b = [ w, w, importedDoubles, w ];
var FUNCTION_TABLE_c = [ z, cneg ];