Index: tests/language/local_function3_test.dart |
diff --git a/tests/language/local_function3_test.dart b/tests/language/local_function3_test.dart |
index 668c9cdfc37e160374b1d2acee0c4ccda36c9f45..dc3e75077dc2062a98e9b6336415cde53a463b34 100644 |
--- a/tests/language/local_function3_test.dart |
+++ b/tests/language/local_function3_test.dart |
@@ -10,7 +10,7 @@ class LocalFunction3Test { |
bool exception_caught = false; |
try { |
f.xyz(0); |
- } catch (NoSuchMethodException e) { |
+ } on NoSuchMethodException catch (e) { |
exception_caught = true; |
} |
Expect.equals(true, exception_caught); |
@@ -18,7 +18,7 @@ class LocalFunction3Test { |
String f_string; |
try { |
f_string = f.toString(); |
- } catch (NoSuchMethodException e) { |
+ } on NoSuchMethodException catch (e) { |
exception_caught = true; |
} |
Expect.equals(false, exception_caught); |