Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Unified Diff: lib/src/dart.dart

Issue 948113004: Support Dart 1.8.0. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bin/unittest.dart ('k') | lib/src/io.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/dart.dart
diff --git a/lib/src/dart.dart b/lib/src/dart.dart
index 4dce4b5923a7b62c94db981555a4748b570c9561..31beb9d2a98332d86595a491058c2a0eba7ea746 100644
--- a/lib/src/dart.dart
+++ b/lib/src/dart.dart
@@ -36,7 +36,7 @@ Future<Isolate> runInIsolate(String code, message, {packageRoot}) {
}).then((isolate) {
return port.first.then((response) {
if (response['type'] != 'error') return isolate;
- isolate.kill();
+ if (supportsIsolateKill) isolate.kill();
var asyncError = RemoteException.deserialize(response['error']);
return new Future.error(asyncError.error, asyncError.stackTrace);
});
« no previous file with comments | « bin/unittest.dart ('k') | lib/src/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698