Index: tests/isolate/global_error_handler_test.dart |
diff --git a/tests/isolate/global_error_handler_test.dart b/tests/isolate/global_error_handler_test.dart |
index a4acbac53e6784c3daa783a2f8132323b4bc2358..e3b5de015ce15a93b937c7ba1942123ed433559d 100644 |
--- a/tests/isolate/global_error_handler_test.dart |
+++ b/tests/isolate/global_error_handler_test.dart |
@@ -20,7 +20,7 @@ void runFunctions() { |
} |
void startTest(SendPort finishPort, replyPort) { |
- firstFunction = () { throw new RuntimeError("ignore exception"); }; |
+ firstFunction = () { throw new UnsupportedError("ignore exception"); }; |
finishFunction = () { finishPort.send("done"); }; |
new Timer(Duration.ZERO, runFunctions); |
} |
@@ -30,7 +30,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() { |