| Index: pkg/unittest/string_matchers.dart
|
| diff --git a/pkg/unittest/string_matchers.dart b/pkg/unittest/string_matchers.dart
|
| index 11ed087bcc28276505a240b3e049502598724c1e..33ab285d1afa9875cc168e8a7b4b0c458af5f878 100644
|
| --- a/pkg/unittest/string_matchers.dart
|
| +++ b/pkg/unittest/string_matchers.dart
|
| @@ -171,7 +171,7 @@ class _MatchesRegExp extends _StringMatcher {
|
| } else if (re is RegExp) {
|
| _regexp = re;
|
| } else {
|
| - throw new IllegalArgumentException('matches requires a regexp or string');
|
| + throw new ArgumentError('matches requires a regexp or string');
|
| }
|
| }
|
|
|
|
|