Index: tests/language/stack_overflow_test.dart |
diff --git a/tests/language/stack_overflow_test.dart b/tests/language/stack_overflow_test.dart |
index c1fdd49ad7d58abe983660f70fb741c111b6d473..83909f99bfa344d44376bdcdf22464a38ea501c3 100644 |
--- a/tests/language/stack_overflow_test.dart |
+++ b/tests/language/stack_overflow_test.dart |
@@ -13,7 +13,7 @@ class StackOverflowTest { |
bool exceptionCaught = false; |
try { |
curseTheRecurse(1, 2, 3); |
- } catch (StackOverflowException e) { |
+ } on StackOverflowException catch (e) { |
exceptionCaught = true; |
} |
Expect.equals(true, exceptionCaught); |