Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: tests/language/type_error_test.dart

Issue 22534004: More throw/rethrow fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/language_analyzer2.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « tests/language/language_analyzer2.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698