Index: test/mjsunit/wasm/function-names.js |
diff --git a/test/mjsunit/wasm/function-names.js b/test/mjsunit/wasm/function-names.js |
index 94919b5e6c2758a25da69edb3f1e4d6125913869..beb7e07b346f70d7dd1e3a38bbc72e86ef89487a 100644 |
--- a/test/mjsunit/wasm/function-names.js |
+++ b/test/mjsunit/wasm/function-names.js |
@@ -10,7 +10,7 @@ load("test/mjsunit/wasm/wasm-module-builder.js"); |
var builder = new WasmModuleBuilder(); |
var last_func_index = builder.addFunction("exec_unreachable", kSig_v_v) |
- .addBody([kExprUnreachable]) |
+ .addBody([kExprUnreachable]).index |
var illegal_func_name = [0xff]; |
var func_names = [ "☠", illegal_func_name, "some math: (½)² = ¼", "" ]; |