Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 3be25f274d35850541732db7416d90882214fa96..67216907275f383be8405fe934e0c273036e3f3e 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -10236,6 +10236,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 { |