From dbc9ff11bf9df6ceafc8fb536fcdfe3c6ae41c26 Mon Sep 17 00:00:00 2001 From: Alexander Aprelev Date: Fri, 5 Apr 2019 15:41:11 +0000 Subject: [PATCH] [vm/vmservice] Switch from const bool.fromEnvironment() to new for 'DART_SERVICE_USE_AUTH'. This is needed to prevent frontend from attempting to evaluate this constant during compile time. Change-Id: If6c72f1ab6b3d7e3ea753703e79b388c39fbeca9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98698 Commit-Queue: Alexander Aprelev Reviewed-by: Martin Kustermann --- sdk/lib/vmservice/vmservice.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/lib/vmservice/vmservice.dart b/sdk/lib/vmservice/vmservice.dart index 10df9dee92e..8524da8f904 100644 --- a/sdk/lib/vmservice/vmservice.dart +++ b/sdk/lib/vmservice/vmservice.dart @@ -42,7 +42,7 @@ String _makeAuthToken() { final String serviceAuthToken = _makeAuthToken(); // TODO(johnmccutchan): Enable the auth token and drop the origin check. -final bool useAuthToken = const bool.fromEnvironment('DART_SERVICE_USE_AUTH'); +final bool useAuthToken = new bool.fromEnvironment('DART_SERVICE_USE_AUTH'); // This is for use by the embedder. It is a map from the isolateId to // anything implementing IsolateEmbedderData. When an isolate goes away,