Index: src/asmjs/asm-wasm-builder.cc |
diff --git a/src/asmjs/asm-wasm-builder.cc b/src/asmjs/asm-wasm-builder.cc |
index 79845fcbe7db7f2242b37209da7d13b9b5e33d4d..d6b88e00257a16ce89646e93ae9e796e2b241e7f 100644 |
--- a/src/asmjs/asm-wasm-builder.cc |
+++ b/src/asmjs/asm-wasm-builder.cc |
@@ -715,9 +715,8 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
const AstRawString* raw_name = name->AsRawPropertyName(); |
if (var->is_function()) { |
WasmFunctionBuilder* function = LookupOrInsertFunction(var); |
- function->Export(); |
- function->SetName({reinterpret_cast<const char*>(raw_name->raw_data()), |
- raw_name->length()}); |
+ function->ExportAs({reinterpret_cast<const char*>(raw_name->raw_data()), |
+ raw_name->length()}); |
} |
} |
} |