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

Unified Diff: pkg/unittest/expect.dart

Issue 10905013: Change a few more uses of the old try-catch syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « pkg/dartdoc/mirrors/dart2js_mirror.dart ('k') | pkg/unittest/unittest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/expect.dart
diff --git a/pkg/unittest/expect.dart b/pkg/unittest/expect.dart
index 64fff95c8b33fc87092898e2bbf0b4d9965eb052..4ef7a56e9e2a6939a8c9f5acbec5aa39b3474151 100644
--- a/pkg/unittest/expect.dart
+++ b/pkg/unittest/expect.dart
@@ -41,7 +41,7 @@ void expect(actual, [matcher = isTrue, String reason = null,
var matchState = new MatchState();
try {
doesMatch = matcher.matches(actual, matchState);
- } catch (var e, var trace) {
+ } catch (e, trace) {
doesMatch = false;
if (reason == null) {
reason = '${(e is String) ? e : e.toString()} at $trace';
« no previous file with comments | « pkg/dartdoc/mirrors/dart2js_mirror.dart ('k') | pkg/unittest/unittest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698