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

Unified Diff: pkg/oauth2/lib/src/credentials.dart

Issue 23093023: Stop working around issue 6775. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « no previous file | pkg/oauth2/lib/src/handle_access_token_response.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/oauth2/lib/src/credentials.dart
diff --git a/pkg/oauth2/lib/src/credentials.dart b/pkg/oauth2/lib/src/credentials.dart
index b02f4705d09dfe1ddceb0816396dc7f0f07ef1b4..5bbec169d65969fb7c54761b61fb9ab728a9aebb 100644
--- a/pkg/oauth2/lib/src/credentials.dart
+++ b/pkg/oauth2/lib/src/credentials.dart
@@ -81,8 +81,7 @@ class Credentials {
var parsed;
try {
parsed = JSON.parse(json);
- } catch (e) {
- // TODO(nweiz): narrow this catch clause once issue 6775 is fixed.
+ } on FormatException catch (e) {
validate(false, 'invalid JSON');
}
« no previous file with comments | « no previous file | pkg/oauth2/lib/src/handle_access_token_response.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698