Index: test/mjsunit/wasm/adapter-frame.js |
diff --git a/test/mjsunit/wasm/adapter-frame.js b/test/mjsunit/wasm/adapter-frame.js |
index 39164c7763e3dd9e5284dd9c9fa7689840f7f979..e595c3fb89e363626d90dc6dfe4339bec580d25f 100644 |
--- a/test/mjsunit/wasm/adapter-frame.js |
+++ b/test/mjsunit/wasm/adapter-frame.js |
@@ -26,12 +26,9 @@ function makeSelect(type, args, which) { |
} |
var builder = new WasmModuleBuilder(); |
- var sig = new Array(); |
- sig.push(args); |
- for (var i = 0; i < args; i++) sig.push(type); |
- sig.push(1); |
- sig.push(type); |
- builder.addFunction("select", sig) |
+ var params = []; |
+ for (var i = 0; i < args; i++) params.push(type); |
+ builder.addFunction("select", makeSig(params, [type])) |
.addBody([kExprGetLocal, which]) |
.exportFunc(); |