Index: test/mjsunit/regress/wasm/loop-stack-check.js |
diff --git a/test/mjsunit/regress/wasm/regression-654377.js b/test/mjsunit/regress/wasm/loop-stack-check.js |
similarity index 65% |
copy from test/mjsunit/regress/wasm/regression-654377.js |
copy to test/mjsunit/regress/wasm/loop-stack-check.js |
index 871da72114f4ee7ba8ed260aed52e46f26b423ee..a76ad017d9c69812c09f7660afdaa2688e7709e6 100644 |
--- a/test/mjsunit/regress/wasm/regression-654377.js |
+++ b/test/mjsunit/regress/wasm/loop-stack-check.js |
@@ -9,14 +9,10 @@ load("test/mjsunit/wasm/wasm-module-builder.js"); |
(function() { |
var builder = new WasmModuleBuilder(); |
- builder.addMemory(1, 1, false); |
- builder.addFunction("foo", kSig_i_v) |
+ builder.addFunction("foo", kSig_i_ii) |
.addBody([ |
- kExprI32Const, 00, |
- kExprMemorySize, |
- kExprBrIf, 00, |
- kExprMemorySize, |
- kExprBr, 0xe7, 0xd2, 0xf2, 0xff, 0x1d |
+ kExprLoop, 00, |
+ kExprBrTable, 0xfb, 0xff, 0xff, 0xff, |
]) |
.exportFunc(); |
assertThrows(function() { builder.instantiate(); }); |