Index: tests/lib/async/run_async4_test.dart |
diff --git a/tests/lib/async/run_async4_test.dart b/tests/lib/async/run_async4_test.dart |
index 46967dfcf1ec9b15556cd4c3c84e62569eccd2c2..c4a1fc173ea2502c118bee5adc2babe91e639619 100644 |
--- a/tests/lib/async/run_async4_test.dart |
+++ b/tests/lib/async/run_async4_test.dart |
@@ -14,7 +14,7 @@ void startTest(SendPort finishPort, replyPort) { |
runAsync(() { |
invokedCallbacks++; |
if (invokedCallbacks == 100) finishPort.send("done"); |
- if (i == 50) throw new RuntimeError("ignore exception"); |
+ if (i == 50) throw new UnsupportedError("ignore exception"); |
}); |
} |
} |
@@ -24,7 +24,7 @@ runTest() { |
} |
bool globalErrorHandler(IsolateUnhandledException e) { |
- return e.source is RuntimeError && e.source.message == "ignore exception"; |
+ return e.source is UnsupportedError && e.source.message == "ignore exception"; |
} |
main() { |