Index: test/mjsunit/wasm/start-function.js |
diff --git a/test/mjsunit/wasm/start-function.js b/test/mjsunit/wasm/start-function.js |
index f0fbd081acb7b46205441f354dca7b5d92058ab9..c4d299e871e55e1a3cf10d82fc257584d5a40362 100644 |
--- a/test/mjsunit/wasm/start-function.js |
+++ b/test/mjsunit/wasm/start-function.js |
@@ -65,8 +65,8 @@ |
var func = builder.addFunction("", kSig_v_v) |
.addBody([kExprNop]); |
- builder.addExplicitSection([kStartSectionCode, 0]); |
- builder.addExplicitSection([kStartSectionCode, 0]); |
+ builder.addExplicitSection([kDeclStart, 0]); |
+ builder.addExplicitSection([kDeclStart, 0]); |
assertThrows(builder.instantiate); |
})(); |
@@ -84,7 +84,7 @@ |
builder.addStart(func.index); |
var module = builder.instantiate(); |
- var memory = module.exports.memory.buffer; |
+ var memory = module.exports.memory; |
var view = new Int8Array(memory); |
assertEquals(77, view[0]); |
})(); |
@@ -102,7 +102,7 @@ |
builder.addImport("foo", sig_index); |
var func = builder.addFunction("", sig_index) |
- .addBody([kExprCallFunction, 0]); |
+ .addBody([kExprCallImport, kArity0, 0]); |
builder.addStart(func.index); |