Index: sdk/lib/async/future.dart |
diff --git a/sdk/lib/async/future.dart b/sdk/lib/async/future.dart |
index 5d6a65009a4afae64ff5d150d7d8816bc876526f..13de367c5aa6c39af4adf7c64765635211f247c0 100644 |
--- a/sdk/lib/async/future.dart |
+++ b/sdk/lib/async/future.dart |
@@ -181,6 +181,7 @@ abstract class Future<T> { |
* Use [Completer] to create a Future and complete it later. |
*/ |
factory Future.value([value]) { |
+ if (value == null) return _nullFuture; |
sra1
2015/06/15 16:17:40
What is the purpose of this change?
I think this
Lasse Reichstein Nielsen
2015/06/15 16:24:42
Ack, true.
The purpose is entirely to save some sp
Lasse Reichstein Nielsen
2015/06/16 09:25:12
Rolling this change back.
|
return new _Future<T>.immediate(value); |
} |