Index: runtime/vm/service.cc |
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc |
index fe24ad50bccec872c066d1292279f343b1873a33..7a65b64b08166de047c61fd25d457a7ac8f064f6 100644 |
--- a/runtime/vm/service.cc |
+++ b/runtime/vm/service.cc |
@@ -2559,6 +2559,7 @@ static const MethodParameter* reload_sources_params[] = { |
}; |
static bool ReloadSources(Thread* thread, JSONStream* js) { |
+#if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) |
Vyacheslav Egorov (Google)
2017/08/25 11:43:41
we are already in the !defined(PRODUCT) code (note
kustermann
2017/08/25 11:46:17
Done.
|
Isolate* isolate = thread->isolate(); |
if (!isolate->compilation_allowed()) { |
js->PrintError(kFeatureDisabled, |
@@ -2596,6 +2597,11 @@ static bool ReloadSources(Thread* thread, JSONStream* js) { |
Service::CheckForPause(isolate, js); |
return true; |
+#else // !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) |
+ js->PrintError(kFeatureDisabled, |
+ "This isolate cannot reload sources right now."); |
+ return true; |
+#endif // !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) |
} |
void Service::CheckForPause(Isolate* isolate, JSONStream* stream) { |