Index: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart |
diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart |
index 99346e1cff5be5ea21b8f3e723e02cca488c5b83..22634d5a185d1199ae33d15c133bdafe3dd3909d 100644 |
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart |
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart |
@@ -1016,7 +1016,7 @@ class ObjectStore native "IDBObjectStore" { |
// TODO: need to guarantee that the controller provides the values |
// immediately as waiting until the next tick will cause the transaction to |
// close. |
- var controller = new StreamController(); |
+ var controller = new StreamController(sync: true); |
request.onError.listen((e) { |
//TODO: Report stacktrace once issue 4061 is resolved. |