Index: test/mjsunit/regress/wasm/regression-654377.js |
diff --git a/test/mjsunit/regress/wasm/regression-651961.js b/test/mjsunit/regress/wasm/regression-654377.js |
similarity index 72% |
copy from test/mjsunit/regress/wasm/regression-651961.js |
copy to test/mjsunit/regress/wasm/regression-654377.js |
index abdec983583242a6990e6f15234573284c0ac71c..871da72114f4ee7ba8ed260aed52e46f26b423ee 100644 |
--- a/test/mjsunit/regress/wasm/regression-651961.js |
+++ b/test/mjsunit/regress/wasm/regression-654377.js |
@@ -12,13 +12,12 @@ load("test/mjsunit/wasm/wasm-module-builder.js"); |
builder.addMemory(1, 1, false); |
builder.addFunction("foo", kSig_i_v) |
.addBody([ |
+ kExprI32Const, 00, |
kExprMemorySize, |
- kExprI32Const, 0x10, |
- kExprGrowMemory, |
- kExprI32Mul, |
+ kExprBrIf, 00, |
+ kExprMemorySize, |
+ kExprBr, 0xe7, 0xd2, 0xf2, 0xff, 0x1d |
]) |
.exportFunc(); |
- var module = builder.instantiate(); |
- var result = module.exports.foo(); |
- assertEquals(1, result); |
+ assertThrows(function() { builder.instantiate(); }); |
})(); |