Index: test/mjsunit/wasm/asm-wasm-switch.js |
diff --git a/test/mjsunit/wasm/asm-wasm-switch.js b/test/mjsunit/wasm/asm-wasm-switch.js |
index bbdb1a20f37fe1eb684dce88dc98e526577f82c4..fac76fd29a0da6b35823af4283e13c26f215ab25 100644 |
--- a/test/mjsunit/wasm/asm-wasm-switch.js |
+++ b/test/mjsunit/wasm/asm-wasm-switch.js |
@@ -11,7 +11,7 @@ |
function caller() { |
var ret = 0; |
var x = 7; |
- switch (x) { |
+ switch (x|0) { |
case 1: { |
return 0; |
} |
@@ -37,7 +37,7 @@ |
function caller() { |
var ret = 0; |
var x = 7; |
- switch (x) { |
+ switch (x|0) { |
case 1: return 0; |
case 7: { |
ret = 12; |
@@ -45,7 +45,7 @@ |
} |
default: return 0; |
} |
- switch (x) { |
+ switch (x|0) { |
case 1: return 0; |
case 8: return 0; |
default: ret = (ret + 11)|0; |
@@ -66,7 +66,7 @@ |
function caller() { |
var x = 17; |
var ret = 0; |
- switch (x) { |
+ switch (x|0) { |
case 17: |
case 14: ret = 39; |
case 1: ret = (ret + 3)|0; |
@@ -89,10 +89,10 @@ |
function caller() { |
var x = 3; |
var y = -13; |
- switch (x) { |
+ switch (x|0) { |
case 1: return 0; |
case 3: { |
- switch (y) { |
+ switch (y|0) { |
case 2: return 0; |
case -13: return 43; |
default: return 0; |