Chromium Code Reviews| Index: sdk/lib/_internal/lib/constant_map.dart |
| diff --git a/sdk/lib/_internal/lib/constant_map.dart b/sdk/lib/_internal/lib/constant_map.dart |
| index 398d37cf339db2f1e8d8035d6f7d6c5a569b1996..80b6705483699e4bf1989140f76b45bbcb587c8e 100644 |
| --- a/sdk/lib/_internal/lib/constant_map.dart |
| +++ b/sdk/lib/_internal/lib/constant_map.dart |
| @@ -25,10 +25,10 @@ abstract class ConstantMap<K, V> implements Map<K, V> { |
| // is shortcut by the compiler. |
| class ConstantStringMap<K, V> extends ConstantMap<K, V> |
| implements _symbol_dev.EfficientLength { |
| - final int length; |
| + final int length = 0; |
|
Emily Fortuna
2014/02/06 01:38:16
not sure why fixing this file our problem, but it
blois
2014/02/06 16:57:32
I'd probably split this one out to a separate CL.
|
| // A constant map is backed by a JavaScript object. |
| - final _jsObject; |
| - final List<K> _keys; |
| + final _jsObject = null; |
| + final List<K> _keys = null; |
| bool containsValue(V needle) { |
| return values.any((V value) => value == needle); |
| @@ -62,7 +62,7 @@ class ConstantStringMap<K, V> extends ConstantMap<K, V> |
| // This class has no constructor. This is on purpose since the instantiation |
| // is shortcut by the compiler. |
| class ConstantProtoMap<K, V> extends ConstantStringMap<K, V> { |
| - final V _protoValue; |
| + final V _protoValue = null; |
| bool containsKey(Object key) { |
| if (key == '__proto__') return true; |
| @@ -86,7 +86,7 @@ class _ConstantMapKeyIterable<K> extends IterableBase<K> { |
| // is shortcut by the compiler. |
| class GeneralConstantMap<K, V> extends ConstantMap<K, V> { |
| // [_jsData] holds a key-value pair list. |
| - final _jsData; |
| + final _jsData = null; |
| // We cannot create the backing map on creation since hashCode interceptors |
| // have not been defined when constants are created. |