Index: test/mjsunit/wasm/ffi-error.js |
diff --git a/test/mjsunit/wasm/ffi-error.js b/test/mjsunit/wasm/ffi-error.js |
index 649ee273ae4fc4d03f8da44478cf779d1ad519db..f4208178b74bf0a94264f95596abb0ff91c80ee0 100644 |
--- a/test/mjsunit/wasm/ffi-error.js |
+++ b/test/mjsunit/wasm/ffi-error.js |
@@ -14,9 +14,10 @@ function testCallFFI(ffi) { |
builder.addImport("fun", sig_index); |
builder.addFunction("main", sig_index) |
.addBody([ |
- kExprCallImport, 0, // -- |
- kExprGetLocal, 0, // -- |
- kExprGetLocal, 1]) // -- |
+ kExprGetLocal, 0, // -- |
+ kExprGetLocal, 1, // -- |
+ kExprCallFunction, kArity2, 0, // -- |
+ ]) // -- |
.exportFunc(); |
var module = builder.instantiate(ffi); |