Index: test/mjsunit/wasm/calls.js |
diff --git a/test/mjsunit/wasm/calls.js b/test/mjsunit/wasm/calls.js |
index 9f65ab95a98aca890e0919ed66d815208b6e33a4..59607d454dbeac02c24a5820a2e14aac22a159f6 100644 |
--- a/test/mjsunit/wasm/calls.js |
+++ b/test/mjsunit/wasm/calls.js |
@@ -37,7 +37,6 @@ function assertFunction(module, func) { |
assertFalse(exp === null); |
assertFalse(exp === 0); |
assertEquals("function", typeof exp); |
- |
return exp; |
} |
@@ -47,10 +46,10 @@ function assertFunction(module, func) { |
builder.addMemory(1, 1, true); |
builder.addFunction("sub", [kAstI64, kAstI64, kAstI64]) |
- .addBody([ |
- kExprI64Sub, // -- |
- kExprGetLocal, 0, // -- |
- kExprGetLocal, 1]) // -- |
+ .addBody([ // -- |
+ kExprGetLocal, 0, // -- |
+ kExprGetLocal, 1, // -- |
+ kExprI64Sub]) // -- |
.exportFunc() |
var module = builder.instantiate(); |
@@ -70,9 +69,10 @@ function assertFunction(module, func) { |
builder.addMemory(1, 1, true); |
builder.addFunction("sub", [kAstI32, kAstI32, kAstI32]) |
.addBody([ |
- kExprI32Sub, // -- |
kExprGetLocal, 0, // -- |
- kExprGetLocal, 1]) // -- |
+ kExprGetLocal, 1, // -- |
+ kExprI32Sub, // -- |
+ ]) |
.exportFunc() |
var module = builder.instantiate(); |
@@ -111,9 +111,10 @@ function assertFunction(module, func) { |
builder.addMemory(kPages, kPages, true); |
builder.addFunction("flt", [kAstI32, kAstF64, kAstF64]) |
.addBody([ |
- kExprF64Lt, // -- |
kExprGetLocal, 0, // -- |
- kExprGetLocal, 1]) // -- |
+ kExprGetLocal, 1, // -- |
+ kExprF64Lt // -- |
+ ]) // -- |
.exportFunc(); |
var module = builder.instantiate(); |