Index: test/mjsunit/wasm/memory-size.js |
diff --git a/test/mjsunit/wasm/memory-size.js b/test/mjsunit/wasm/memory-size.js |
index 197059eb492bd3da5e03c06630ff0b89bccbe550..bd747176a8de56319f1d612c0983a5a338d70c8b 100644 |
--- a/test/mjsunit/wasm/memory-size.js |
+++ b/test/mjsunit/wasm/memory-size.js |
@@ -11,7 +11,7 @@ load("test/mjsunit/wasm/wasm-module-builder.js"); |
print("testMemorySizeZero()"); |
var builder = new WasmModuleBuilder(); |
builder.addFunction("memory_size", kSig_i_v) |
- .addBody([kExprMemorySize]) |
+ .addBody([kExprMemorySize, kMemoryZero]) |
.exportFunc(); |
var module = builder.instantiate(); |
assertEquals(0, module.exports.memory_size()); |
@@ -23,7 +23,7 @@ load("test/mjsunit/wasm/wasm-module-builder.js"); |
var size = 11; |
builder.addMemory(size, size, false); |
builder.addFunction("memory_size", kSig_i_v) |
- .addBody([kExprMemorySize]) |
+ .addBody([kExprMemorySize, kMemoryZero]) |
.exportFunc(); |
var module = builder.instantiate(); |
assertEquals(size, module.exports.memory_size()); |