diff options
Diffstat (limited to 'test/unit.asm.js')
-rw-r--r-- | test/unit.asm.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit.asm.js b/test/unit.asm.js index 86be4cf2f..c3adb2a3a 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -266,7 +266,7 @@ function asm(global, env, buffer) { function smallIf() { do { - if (2) { + if (return_int() | 0) { lb(3) | 0; } else { break; @@ -328,8 +328,8 @@ function asm(global, env, buffer) { function conditionalTypeFun() { var x = 0, y = +0; - x = 1 ? abort(5) | 0 : 2; - y = 3 ? +abort(7) : 4.5; + x = return_int() | 0 ? abort(5) | 0 : 2; + y = return_int() | 0 ? +abort(7) : 4.5; } function loadSigned(x) { @@ -358,7 +358,7 @@ function asm(global, env, buffer) { Int = x; globalOpts(); x = Int; - if (1) Int = 20; // but this does interfere + if (return_int() | 0) Int = 20; // but this does interfere Int = x; globalOpts(); x = Int; @@ -367,7 +367,7 @@ function asm(global, env, buffer) { } function dropCallImport() { - if (1) return_int() | 0; + if (return_int() | 0) return_int() | 0; } function loophi(x, y) { @@ -399,7 +399,7 @@ function asm(global, env, buffer) { j = 0; while(1) { temp = j; - if (1) { + if (return_int() | 0) { if (temp) { i$lcssa = i; break L7; |