Index: test/mjsunit/wasm/indirect-tables.js |
diff --git a/test/mjsunit/wasm/indirect-tables.js b/test/mjsunit/wasm/indirect-tables.js |
index 80920c91c63fdd1fe8c31b2371e542da374de97e..5e3c14e213862920e5c5fe7d4f22ac62d9244868 100644 |
--- a/test/mjsunit/wasm/indirect-tables.js |
+++ b/test/mjsunit/wasm/indirect-tables.js |
@@ -319,9 +319,8 @@ function js_div(a, b) { return (a / b) | 0; } |
kExprCallIndirect, sig_index2, kTableZero]) // -- |
.exportAs("main"); |
- builder.setFunctionTableLength(kTableSize); |
- builder.addFunctionTableInit(1, false, [f2.index]); |
builder.addImportedTable("z", "table", kTableSize, kTableSize); |
+ builder.addFunctionTableInit(1, false, [f2.index], true); |
var m2 = new WebAssembly.Module(builder.toBuffer()); |