Index: tests/corelib/reg_exp5_test.dart |
diff --git a/tests/corelib/reg_exp5_test.dart b/tests/corelib/reg_exp5_test.dart |
index e94c6e748eb910704f5406b0578a4edde81271be..7385010e4724337f92ac66685abbd4aee075c89c 100644 |
--- a/tests/corelib/reg_exp5_test.dart |
+++ b/tests/corelib/reg_exp5_test.dart |
@@ -7,7 +7,7 @@ main() { |
String str = ""; |
try { |
RegExp ex = new RegExp(str); |
- } catch (Exception e) { |
+ } on Exception catch (e) { |
if (!(e is NullPointerException)) { |
Expect.fail("Expected: NullPointerException got: ${e}"); |
} |