Index: src/wasm/asm-wasm-builder.cc |
diff --git a/src/wasm/asm-wasm-builder.cc b/src/wasm/asm-wasm-builder.cc |
index bf9ffde0b88f0adae3929603b05f27a1ab7a575d..9144b0449b24e5ffedb5420c73fd6364ab280bc4 100644 |
--- a/src/wasm/asm-wasm-builder.cc |
+++ b/src/wasm/asm-wasm-builder.cc |
@@ -66,12 +66,10 @@ class AsmWasmBuilderImpl : public AstVisitor { |
} |
void InitializeInitFunction() { |
- unsigned char init[] = "__init__"; |
init_function_index_ = builder_->AddFunction(); |
current_function_builder_ = builder_->FunctionAt(init_function_index_); |
- current_function_builder_->SetName(init, 8); |
current_function_builder_->ReturnType(kAstStmt); |
- current_function_builder_->Exported(1); |
+ builder_->MarkStartFunction(init_function_index_); |
current_function_builder_ = nullptr; |
} |