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

Unified Diff: samples/calculator/tape.dart

Issue 10891020: Update almost all tests (except co19) to use the new try-catch syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. 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 | « no previous file | tests/compiler/dart2js_extra/naming_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/calculator/tape.dart
diff --git a/samples/calculator/tape.dart b/samples/calculator/tape.dart
index 2e9ed012dd2d4bcabc569a33c082e0099cf011cd..b0867b92ecc2bda0d6b24cc48b779e0318b468f3 100644
--- a/samples/calculator/tape.dart
+++ b/samples/calculator/tape.dart
@@ -22,7 +22,7 @@ class Tape {
if (number != "." && number != "-" && number != "-.") {
try {
numberAsValue = Math.parseDouble(number.length == 0 ? "0" : number);
- } on FormatException (e) {
+ } on FormatException catch (e) {
displayError(e.toString());
return;
}
« no previous file with comments | « no previous file | tests/compiler/dart2js_extra/naming_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698