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

Unified Diff: lib/src/asset/dart/serialize/exception.dart

Issue 2184303002: Make pub strong-mode clean. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 years, 5 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
Index: lib/src/asset/dart/serialize/exception.dart
diff --git a/lib/src/asset/dart/serialize/exception.dart b/lib/src/asset/dart/serialize/exception.dart
index d870a6e51535b4c9b9ad3fde8dd209543b146474..f74537a008fc2ac4acf3046ae9ba59cde041fd16 100644
--- a/lib/src/asset/dart/serialize/exception.dart
+++ b/lib/src/asset/dart/serialize/exception.dart
@@ -20,7 +20,8 @@ class CrossIsolateException implements Exception {
/// The exception's message, or its [toString] if it didn't expose a `message`
/// property.
- final String message;
+ String get message => _message;
+ final String _message;
/// The exception's stack chain, or `null` if no stack chain was available.
final Chain stackTrace;
@@ -30,7 +31,7 @@ class CrossIsolateException implements Exception {
/// [error] should be the result of [CrossIsolateException.serialize].
CrossIsolateException.deserialize(Map error)
: type = error['type'],
- message = error['message'],
+ _message = error['message'],
stackTrace = error['stack'] == null ? null :
new Chain.parse(error['stack']);
« no previous file with comments | « lib/src/asset/dart/serialize/aggregate_transform.dart ('k') | lib/src/asset/dart/serialize/get_input_transform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698