Index: test/cctest/wasm/test-wasm-trap-position.cc |
diff --git a/test/cctest/wasm/test-wasm-trap-position.cc b/test/cctest/wasm/test-wasm-trap-position.cc |
index 026862063c060f9f5ceb2a3b6f8239203a99448a..a7184749456122e3eadacf479e12b4e790845230 100644 |
--- a/test/cctest/wasm/test-wasm-trap-position.cc |
+++ b/test/cctest/wasm/test-wasm-trap-position.cc |
@@ -100,6 +100,7 @@ TEST(IllegalLoad) { |
TestSignatures sigs; |
// Set the execution context, such that a runtime error can be thrown. |
r.SetModuleContext(); |
+ r.module().AddMemory(0L); |
BUILD(r, WASM_IF(WASM_ONE, WASM_SEQ(WASM_LOAD_MEM(MachineType::Int32(), |
WASM_I32V_1(-3)), |