Chromium Code Reviews| Index: tests/language/named_parameters3_test.dart |
| =================================================================== |
| --- tests/language/named_parameters3_test.dart (revision 13204) |
| +++ tests/language/named_parameters3_test.dart (working copy) |
| @@ -12,7 +12,7 @@ |
| bool foundError = false; |
| try { |
| test(10, x:99); // 1 positional arg, as expected. Param x does not exist. |
| - } on Exception catch (e) { |
| + } on NoSuchMethodError catch (e) { |
| foundError = true; |
| } |
| Expect.equals(true, foundError); |