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

Unified Diff: corelib/src/implementation/future_implementation.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 | « corelib/src/expect.dart ('k') | lib/compiler/implementation/apiimpl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/implementation/future_implementation.dart
diff --git a/corelib/src/implementation/future_implementation.dart b/corelib/src/implementation/future_implementation.dart
index 58d78433a059fb005f9dc620449624e7b51a7f33..328c88964c6be89f44914b7bdddb32a12102758e 100644
--- a/corelib/src/implementation/future_implementation.dart
+++ b/corelib/src/implementation/future_implementation.dart
@@ -109,7 +109,7 @@ class FutureImpl<T> implements Future<T> {
if (_isComplete) {
try {
complete(this);
- } catch (final e) {}
+ } catch (e) {}
} else {
_completionListeners.add(complete);
}
@@ -143,7 +143,7 @@ class FutureImpl<T> implements Future<T> {
for (Function listener in _completionListeners) {
try {
listener(this);
- } catch (final e) {}
+ } catch (e) {}
}
}
}
@@ -179,7 +179,7 @@ class FutureImpl<T> implements Future<T> {
var transformed = null;
try {
transformed = transformation(v);
- } catch (final ex, final stackTrace) {
+ } catch (ex, stackTrace) {
completer.completeException(ex, stackTrace);
return;
}
@@ -198,7 +198,7 @@ class FutureImpl<T> implements Future<T> {
var future = null;
try {
future = transformation(v);
- } catch (final ex, final stackTrace) {
+ } catch (ex, stackTrace) {
completer.completeException(ex, stackTrace);
return;
}
« no previous file with comments | « corelib/src/expect.dart ('k') | lib/compiler/implementation/apiimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698