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

Unified Diff: sdk/lib/_internal/pub/asset/dart/serialize/transformer.dart

Issue 353943002: Throw a more descriptive error if a TransformerGroup has null phases. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/asset/dart/serialize/transformer.dart
diff --git a/sdk/lib/_internal/pub/asset/dart/serialize/transformer.dart b/sdk/lib/_internal/pub/asset/dart/serialize/transformer.dart
index 0e4d0c491b0552bdb4bfc26e54bb1bfdc72fdd83..16d02deb5790116cc24428521f357ba1fbd6f872 100644
--- a/sdk/lib/_internal/pub/asset/dart/serialize/transformer.dart
+++ b/sdk/lib/_internal/pub/asset/dart/serialize/transformer.dart
@@ -95,6 +95,10 @@ Map _serializeAggregateTransformer(AggregateTransformer transformer) {
// Converts [group] into a serializable map.
Map _serializeTransformerGroup(TransformerGroup group) {
+ if (group.phases == null) {
+ throw "TransformerGroup $group phases cannot be null.";
+ }
+
return {
'type': 'TransformerGroup',
'toString': group.toString(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698