Index: test/mjsunit/wasm/module-memory.js |
diff --git a/test/mjsunit/wasm/module-memory.js b/test/mjsunit/wasm/module-memory.js |
index e9c1404a4f0bd70933d84962965a159a34104cf2..b3a3a226e545a4630d49e198b54960023ce870a1 100644 |
--- a/test/mjsunit/wasm/module-memory.js |
+++ b/test/mjsunit/wasm/module-memory.js |
@@ -10,9 +10,9 @@ var kMemSize = 4096; |
function genModule(memory) { |
var kBodySize = 27; |
- var kNameMainOffset = 28 + kBodySize + 1; |
+ var kNameMainOffset = kHeaderSize + 28 + kBodySize + 1; |
- var data = bytes( |
+ var data = bytesWithHeader( |
kDeclMemory, |
12, 12, 1, // memory |
// -- signatures |
@@ -133,9 +133,9 @@ testOuterMemorySurvivalAcrossGc(); |
function testOOBThrows() { |
var kBodySize = 8; |
- var kNameMainOffset = 29 + kBodySize + 1; |
+ var kNameMainOffset = kHeaderSize + 29 + kBodySize + 1; |
- var data = bytes( |
+ var data = bytesWithHeader( |
kDeclMemory, |
12, 12, 1, // memory = 4KB |
// -- signatures |