Index: tests/corelib/reg_exp5_test.dart |
diff --git a/tests/corelib/reg_exp5_test.dart b/tests/corelib/reg_exp5_test.dart |
index 17217a86827848029ed03124e513ef654dcd3ff2..56002cac03e87ef7a98dcea9c07e4e86c476c8dc 100644 |
--- a/tests/corelib/reg_exp5_test.dart |
+++ b/tests/corelib/reg_exp5_test.dart |
@@ -7,9 +7,9 @@ main() { |
String str = ""; |
try { |
RegExp ex = new RegExp(str); |
- } on Exception catch (e) { |
- if (!(e is NullPointerException)) { |
- Expect.fail("Expected: NullPointerException got: ${e}"); |
+ } catch (e) { |
+ if (!(e is ArgumentError)) { |
+ Expect.fail("Expected: ArgumentError got: ${e}"); |
} |
} |
Expect.isFalse(new RegExp(r"^\w+$").hasMatch(str)); |