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

Unified Diff: lib/dom/scripts/idlparser_test.dart

Issue 10891022: Update corelib/ and lib/ to use the new 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
Index: lib/dom/scripts/idlparser_test.dart
diff --git a/lib/dom/scripts/idlparser_test.dart b/lib/dom/scripts/idlparser_test.dart
index 3ef11f33adec043b87f8dc4419ecef8ba6e572d0..bfe29065b79038c533ca54c2e86cf8e606a3382c 100644
--- a/lib/dom/scripts/idlparser_test.dart
+++ b/lib/dom/scripts/idlparser_test.dart
@@ -68,7 +68,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
@@ -85,7 +85,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 | « lib/compiler/implementation/typechecker.dart ('k') | lib/dom/templates/html/dart2js/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698