Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index b389b2b5a046ffddbb9680974d06fe09b34673f1..a1f34cb95d7e86f02ce7d95da679b85a2ede8e11 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10251,6 +10251,19 @@ MaybeHandle<String> Name::ToFunctionName(Handle<Name> name) { |
return builder.Finish(); |
} |
+// static |
+MaybeHandle<String> Name::ToFunctionName(Handle<Name> name, |
+ Handle<String> prefix) { |
+ Handle<String> name_string; |
+ Isolate* const isolate = name->GetIsolate(); |
+ ASSIGN_RETURN_ON_EXCEPTION(isolate, name_string, ToFunctionName(name), |
+ String); |
+ IncrementalStringBuilder builder(isolate); |
+ builder.AppendString(prefix); |
+ builder.AppendCharacter(' '); |
+ builder.AppendString(name_string); |
+ return builder.Finish(); |
+} |
namespace { |