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

Unified Diff: pkg/barback/lib/src/serialize.dart

Issue 63243003: Work around issue 14971 in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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: pkg/barback/lib/src/serialize.dart
diff --git a/pkg/barback/lib/src/serialize.dart b/pkg/barback/lib/src/serialize.dart
index f146f23e885e6c4d08c0b9d2174924b4cb501519..eb948a451fe7ad68c1a5d551fa1138f16998dd59 100644
--- a/pkg/barback/lib/src/serialize.dart
+++ b/pkg/barback/lib/src/serialize.dart
@@ -45,8 +45,10 @@ Stream deserializeStream(SendPort sendPort) {
return callbackStream(() {
var receivePort = new ReceivePort();
sendPort.send(receivePort.sendPort);
+ // TODO(nweiz): use a const constructor for StreamTransformer when issue
+ // 14971 is fixed.
return receivePort.transform(
- const StreamTransformer(_deserializeTransformer));
+ new StreamTransformer(_deserializeTransformer));
});
}
« 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