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

Unified Diff: utils/tests/peg/peg_test.dart

Issue 10887023: Use new try-catch syntax in runtime/, tools/, and utils/. (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 | « utils/tests/css/selector_literal_test.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/peg/peg_test.dart
diff --git a/utils/tests/peg/peg_test.dart b/utils/tests/peg/peg_test.dart
index b39a12f90d2669124a52624a7679279f23c71df8..a8cc7d8c2df305d6788860fa7a42bdbae04a20a6 100644
--- a/utils/tests/peg/peg_test.dart
+++ b/utils/tests/peg/peg_test.dart
@@ -291,7 +291,7 @@ show(grammar, rule, input) {
var ast;
try {
ast = grammar.parse(rule, input);
- } catch (var exception) {
+ } catch (exception) {
if (exception is ParseError)
ast = exception;
else
@@ -307,7 +307,7 @@ void check(grammar, rule, input, expected) {
var ast;
try {
ast = grammar.parse(rule, input);
- } catch (var exception) {
+ } catch (exception) {
ast = exception;
}
« no previous file with comments | « utils/tests/css/selector_literal_test.dart ('k') | utils/tests/pub/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698