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

Unified Diff: lib/coreimpl/exceptions.dart

Issue 10948009: Revert 12494. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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/coreimpl/duration_implementation.dart ('k') | lib/coreimpl/string_buffer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/coreimpl/exceptions.dart
===================================================================
--- lib/coreimpl/exceptions.dart (revision 12500)
+++ lib/coreimpl/exceptions.dart (working copy)
@@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
class ExceptionImplementation implements Exception {
- final message;
- const ExceptionImplementation([this.message]);
- String toString() => (message == null) ? "Exception" : "Exception: $message";
+ const ExceptionImplementation([msg = null]) : _msg = msg;
+ String toString() => (_msg === null) ? "Exception" : "Exception: $_msg";
+ final _msg;
}
« no previous file with comments | « lib/coreimpl/duration_implementation.dart ('k') | lib/coreimpl/string_buffer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698