| Index: runtime/vm/dart_api_impl.cc
|
| ===================================================================
|
| --- runtime/vm/dart_api_impl.cc (revision 45815)
|
| +++ runtime/vm/dart_api_impl.cc (working copy)
|
| @@ -1290,6 +1290,7 @@
|
| char** error) {
|
| CHECK_NO_ISOLATE(Isolate::Current());
|
| char* isolate_name = BuildIsolateName(script_uri, main);
|
| + Thread::EnsureInit();
|
| Isolate* isolate = Dart::CreateIsolate(isolate_name);
|
| free(isolate_name);
|
| {
|
| @@ -1365,6 +1366,7 @@
|
| if (iso->mutator_thread() != NULL) {
|
| FATAL("Multiple mutators within one isolate is not supported.");
|
| }
|
| + Thread::EnsureInit();
|
| Thread::EnterIsolate(iso);
|
| }
|
|
|
|
|