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

Unified Diff: lib/src/isolate_wrapper.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 | « lib/src/io.dart ('k') | lib/src/loader.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/isolate_wrapper.dart
diff --git a/lib/src/isolate_wrapper.dart b/lib/src/isolate_wrapper.dart
index e869311585900a7e54bcbd0b1e474874062205e9..f0031da01c8dccb7dcc9b452819191d2b4e3ef1c 100644
--- a/lib/src/isolate_wrapper.dart
+++ b/lib/src/isolate_wrapper.dart
@@ -7,6 +7,8 @@ library unittest.isolate_wrapper;
import 'dart:async';
import 'dart:isolate';
+import 'io.dart';
+
// TODO(nweiz): Get rid of this when issue 6610 is fixed.
/// This is a wrapper around an [Isolate] that supports a callback that will
/// fire when [Isolate.exit] is called.
@@ -40,7 +42,7 @@ class IsolateWrapper implements Isolate {
String toString() => _inner.toString();
void kill([int priority=Isolate.BEFORE_NEXT_EVENT]) {
- _inner.kill(priority);
+ if (supportsIsolateKill) _inner.kill(priority);
_onExit();
}
}
« no previous file with comments | « lib/src/io.dart ('k') | lib/src/loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698