Skip to content

Commit f4e99de

Browse files
authored
Fix Dart 2 parse bugs in the VM (#810)
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
1 parent 8bbedd4 commit f4e99de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/src/runner/browser/chrome.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Chrome extends Browser {
7979
};
8080

8181
if (!debug) return tryPort();
82-
return getUnusedPort<Future<Process>>(tryPort);
82+
return getUnusedPort<Process>(tryPort);
8383
}, remoteDebuggerCompleter.future);
8484
}
8585

lib/src/runner/browser/dartium.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Dartium extends Browser {
117117
};
118118

119119
if (!debug) return tryPort();
120-
return getUnusedPort<Future<Process>>(tryPort);
120+
return getUnusedPort<Process>(tryPort);
121121
}, observatoryCompleter.future, remoteDebuggerCompleter.future);
122122
}
123123

0 commit comments

Comments
 (0)