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

Unified Diff: lib/compiler/implementation/lib/isolate_patch.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/compiler/implementation/dart2js.dart ('k') | lib/compiler/implementation/lib/regexp_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/lib/isolate_patch.dart
diff --git a/lib/compiler/implementation/lib/isolate_patch.dart b/lib/compiler/implementation/lib/isolate_patch.dart
index d5a3cafee3b003a0d8629e86d015b47cf9f03e0a..553bd93f27cfd6c7a7a696bf96af11a6cea10f95 100644
--- a/lib/compiler/implementation/lib/isolate_patch.dart
+++ b/lib/compiler/implementation/lib/isolate_patch.dart
@@ -342,7 +342,7 @@ class _EventLoop {
} else {
try {
_runHelper();
- } catch(var e, var trace) {
+ } catch (e, trace) {
_globalState.mainManager.postMessage(_serializeMessage(
{'command': 'error', 'msg': '$e\n$trace' }));
}
@@ -473,7 +473,7 @@ class _IsolateNatives {
} else {
try {
_consoleLog(msg);
- } catch(var e, var trace) {
+ } catch (e, trace) {
throw new Exception(trace);
}
}
« no previous file with comments | « lib/compiler/implementation/dart2js.dart ('k') | lib/compiler/implementation/lib/regexp_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698