| Index: tests/language/type_error_test.dart
|
| diff --git a/tests/language/type_error_test.dart b/tests/language/type_error_test.dart
|
| index 6f0303bb795f287e9892f97ebd055f09c9c2fc21..fc62c23b936709710aef4246c03d3eb91bf3e087 100644
|
| --- a/tests/language/type_error_test.dart
|
| +++ b/tests/language/type_error_test.dart
|
| @@ -145,7 +145,7 @@ checkAssert(o) {
|
| assert(o);
|
| } on TypeError catch (e) {
|
| print(e); // This might provoke an error.
|
| - if (!assertionsEnabled) throw; // Unexpected error.
|
| + if (!assertionsEnabled) rethrow; // Unexpected error.
|
| }
|
| }
|
|
|
| @@ -154,7 +154,7 @@ checkCastError(o) {
|
| print(o);
|
| } on TypeError catch (e) {
|
| print('unexpected type error: ${Error.safeToString(e)}');
|
| - throw; // Unexpected type error.
|
| + rethrow; // Unexpected type error.
|
| } on CastError catch (e) {
|
| print(e); // This might provoke an error.
|
| return; // Expected a cast error.
|
|
|