From db07434863c6d65fcdc4935f9c1eb87616399592 Mon Sep 17 00:00:00 2001 From: Nate Bosch <nbosch@google.com> Date: Thu, 12 Apr 2018 13:08:29 -0700 Subject: [PATCH] Fix Dart 2 parse bugs in the VM I'm not sure why the analyzer doesn't catch these, they appear to be parse time bugs not runtime bugs when executing in the vm with --preview-dart-2 --- lib/src/runner/browser/chrome.dart | 2 +- lib/src/runner/browser/dartium.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/runner/browser/chrome.dart b/lib/src/runner/browser/chrome.dart index cedc53616..9dc58832b 100644 --- a/lib/src/runner/browser/chrome.dart +++ b/lib/src/runner/browser/chrome.dart @@ -79,7 +79,7 @@ class Chrome extends Browser { }; if (!debug) return tryPort(); - return getUnusedPort<Future<Process>>(tryPort); + return getUnusedPort<Process>(tryPort); }, remoteDebuggerCompleter.future); } diff --git a/lib/src/runner/browser/dartium.dart b/lib/src/runner/browser/dartium.dart index b17861fd9..b548a50da 100644 --- a/lib/src/runner/browser/dartium.dart +++ b/lib/src/runner/browser/dartium.dart @@ -117,7 +117,7 @@ class Dartium extends Browser { }; if (!debug) return tryPort(); - return getUnusedPort<Future<Process>>(tryPort); + return getUnusedPort<Process>(tryPort); }, observatoryCompleter.future, remoteDebuggerCompleter.future); }