Index: test/mjsunit/wasm/stackwalk.js |
diff --git a/test/mjsunit/wasm/stackwalk.js b/test/mjsunit/wasm/stackwalk.js |
index e863b07b4f666b10281425fc34b4757cd70507bb..abe66a629496490f772e46f6dc9fe120f7dfdd10 100644 |
--- a/test/mjsunit/wasm/stackwalk.js |
+++ b/test/mjsunit/wasm/stackwalk.js |
@@ -8,13 +8,13 @@ load("test/mjsunit/wasm/wasm-constants.js"); |
function makeFFI(func) { |
var kBodySize = 6; |
- var kNameFunOffset = 24 + kBodySize + 1; |
+ var kNameFunOffset = kHeaderSize + 24 + kBodySize + 1; |
var kNameMainOffset = kNameFunOffset + 4; |
var ffi = new Object(); |
ffi.fun = func; |
- var data = bytes( |
+ var data = bytesWithHeader( |
// signatures |
kDeclSignatures, 1, |
2, kAstI32, kAstF64, kAstF64, // (f64,f64) -> int |