| Index: runtime/vm/dart_api_impl_test.cc
|
| diff --git a/runtime/vm/dart_api_impl_test.cc b/runtime/vm/dart_api_impl_test.cc
|
| index db3cb14aa7088b712f837fa9a86724af71a76af9..516d25ce54156635ba2b68899e091ed6921c5264 100644
|
| --- a/runtime/vm/dart_api_impl_test.cc
|
| +++ b/runtime/vm/dart_api_impl_test.cc
|
| @@ -7127,8 +7127,11 @@ static Dart_Isolate RunLoopTestCallback(const char* script_name,
|
| if (Dart_CurrentIsolate() != NULL) {
|
| Dart_ExitIsolate();
|
| }
|
| - Dart_Isolate isolate = TestCase::CreateTestIsolate();
|
| + Dart_Isolate isolate = TestCase::CreateTestIsolate(script_name);
|
| ASSERT(isolate != NULL);
|
| + if (Dart_IsServiceIsolate(isolate)) {
|
| + return isolate;
|
| + }
|
| Dart_EnterScope();
|
| Dart_Handle url = NewString(TestCase::url());
|
| Dart_Handle source = NewString(kScriptChars);
|
|
|