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

Unified Diff: lib/html/src/XMLElementWrappingImplementation.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
« no previous file with comments | « lib/html/src/Measurement.dart ('k') | lib/json/json.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/src/XMLElementWrappingImplementation.dart
diff --git a/lib/html/src/XMLElementWrappingImplementation.dart b/lib/html/src/XMLElementWrappingImplementation.dart
index f4a7fd756be0d33260df40a92a9898236778f4ed..14aad79acd8f3ebd5f78c982fe13e2148135cd8b 100644
--- a/lib/html/src/XMLElementWrappingImplementation.dart
+++ b/lib/html/src/XMLElementWrappingImplementation.dart
@@ -157,7 +157,7 @@ class XMLElementWrappingImplementation extends ElementWrappingImplementation
int get tabIndex() {
try {
return Math.parseInt(_attr('tabIndex'));
- } catch (FormatException e) {
+ } on FormatException catch (e) {
return 0;
}
}
« no previous file with comments | « lib/html/src/Measurement.dart ('k') | lib/json/json.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698