Chromium Code Reviews| Index: runtime/lib/mirrors_impl.dart |
| =================================================================== |
| --- runtime/lib/mirrors_impl.dart (revision 29812) |
| +++ runtime/lib/mirrors_impl.dart (working copy) |
| @@ -221,11 +221,11 @@ |
| { |
| if (arg is Mirror) { |
| if (arg is! InstanceMirror) { |
| - throw new MirrorException( |
| + throw /* new MirrorException */( |
| 'positional argument $i ($arg) was not an InstanceMirror'); |
| } |
| } else if (!_isSimpleValue(arg)) { |
| - throw new MirrorException( |
| + throw /* new MirrorException */( |
| 'positional argument $i ($arg) was not a simple value'); |
| } |
| } |
| @@ -1252,7 +1252,7 @@ |
| } else { |
| var parts = MirrorSystem.getName(simpleName).split('.'); |
| if (parts.length > 2) { |
| - throw new MirrorException( |
| + throw /* new MirrorException */( |
|
siva
2013/11/04 16:32:20
Should this be new InternalError(...) the comment
|
| 'Internal error in MethodMirror.constructorName: ' |
| 'malformed name <$simpleName>'); |
| } else if (parts.length == 2) { |