| Index: runtime/vm/dart_api_impl.cc
|
| diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc
|
| index 76119d6baa2df088bcd7e262f1a3ff03c0051f2d..04c5f313cc3429fefae25ab46a6d6b0c3e8c8d5c 100644
|
| --- a/runtime/vm/dart_api_impl.cc
|
| +++ b/runtime/vm/dart_api_impl.cc
|
| @@ -1096,9 +1096,9 @@ static char* BuildIsolateName(const char* script_uri, const char* main) {
|
| }
|
|
|
| char* chars = NULL;
|
| - intptr_t len = OS::SNPrint(NULL, 0, "%s$%s", script_uri, main) + 1;
|
| + intptr_t len = OS::SNPrint(NULL, 0, "%s:%s()", script_uri, main) + 1;
|
| chars = reinterpret_cast<char*>(malloc(len));
|
| - OS::SNPrint(chars, len, "%s$%s", script_uri, main);
|
| + OS::SNPrint(chars, len, "%s:%s()", script_uri, main);
|
| return chars;
|
| }
|
|
|
| @@ -1235,7 +1235,9 @@ DART_EXPORT void* Dart_IsolateData(Dart_Isolate isolate) {
|
| DART_EXPORT Dart_Handle Dart_DebugName() {
|
| DARTSCOPE(Thread::Current());
|
| Isolate* I = T->isolate();
|
| - return Api::NewHandle(T, String::New(I->name()));
|
| + return Api::NewHandle(
|
| + T, String::NewFormatted("(%" Pd64 ") '%s'",
|
| + static_cast<int64_t>(I->main_port()), I->name()));
|
| }
|
|
|
| DART_EXPORT void Dart_EnterIsolate(Dart_Isolate isolate) {
|
|
|