Index: test/mjsunit/wasm/ffi-error.js |
diff --git a/test/mjsunit/wasm/ffi-error.js b/test/mjsunit/wasm/ffi-error.js |
index 3359429055e94f1d28cde4076fd7e2d194e6848e..ed6aa2542810fa7dc804fcc1e88f1e13d3b677fe 100644 |
--- a/test/mjsunit/wasm/ffi-error.js |
+++ b/test/mjsunit/wasm/ffi-error.js |
@@ -8,10 +8,10 @@ load("test/mjsunit/wasm/wasm-constants.js"); |
function testCallFFI(ffi) { |
var kBodySize = 6; |
- var kNameAddOffset = 28 + kBodySize + 1; |
+ var kNameAddOffset = kHeaderSize + 28 + kBodySize + 1; |
var kNameMainOffset = kNameAddOffset + 4; |
- var data = bytes( |
+ var data = bytesWithHeader( |
kDeclMemory, |
12, 12, 1, // memory |
// -- signatures |