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

Unified Diff: lib/json/json.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/XMLElementWrappingImplementation.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/json/json.dart
diff --git a/lib/json/json.dart b/lib/json/json.dart
index 002b5908d3f9fed6d1295eea93a276bacd27f9e2..01b16819c2ca819a52ae097f6ea917c53d3f85fe 100644
--- a/lib/json/json.dart
+++ b/lib/json/json.dart
@@ -124,7 +124,7 @@ class _JsonParser {
p._parseObject();
assert(p.position <= p.length);
return p.position;
- } catch (var e) {
+ } catch (e) {
return 0;
}
}
@@ -292,7 +292,7 @@ class _JsonParser {
final codeString = json.substring(position + 1, position + 5);
try {
c = parseInt('0x${codeString}');
- } catch (var e) {
+ } catch (e) {
_error('Invalid unicode esacape sequence');
}
position += 4;
« no previous file with comments | « lib/html/src/XMLElementWrappingImplementation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698