Index: test/mjsunit/wasm/stack.js |
diff --git a/test/mjsunit/wasm/stack.js b/test/mjsunit/wasm/stack.js |
index 3bf41726423ae7573adb63f8a088316afe3bceb8..573db3032b96142363eb87bbe67b3c2f7a84ff5c 100644 |
--- a/test/mjsunit/wasm/stack.js |
+++ b/test/mjsunit/wasm/stack.js |
@@ -8,13 +8,13 @@ load("test/mjsunit/wasm/wasm-constants.js"); |
function testStack(func, check) { |
var kBodySize = 2; |
- var kNameFunOffset = 22 + kBodySize + 1; |
+ var kNameFunOffset = kHeaderSize + 22 + kBodySize + 1; |
var kNameMainOffset = kNameFunOffset + 4; |
var ffi = new Object(); |
ffi.fun = func; |
- var data = bytes( |
+ var data = bytesWithHeader( |
// signatures |
kDeclSignatures, 1, // -- |
0, kAstStmt, // () -> void |