Chromium Code Reviews| Index: sdk/lib/core/map.dart |
| diff --git a/sdk/lib/core/map.dart b/sdk/lib/core/map.dart |
| index 58c9bf2f497463092bb8765ad8c58c5e00927e48..94964129ece50fea3bbffb306d2cbaa756760f79 100644 |
| --- a/sdk/lib/core/map.dart |
| +++ b/sdk/lib/core/map.dart |
| @@ -189,7 +189,7 @@ class _HashMapImpl<K, V> implements HashMap<K, V> { |
| } |
| int _probeForAdding(K key) { |
| - if (key == null) throw const NullPointerException(); |
| + if (key == null) throw new ArgumentError(null); |
|
ngeoffray
2012/11/16 12:41:30
new or const?
|
| int hash = _firstProbe(key.hashCode, _keys.length); |
| int numberOfProbes = 1; |
| int initialHash = hash; |
| @@ -224,7 +224,7 @@ class _HashMapImpl<K, V> implements HashMap<K, V> { |
| } |
| int _probeForLookup(K key) { |
| - if (key == null) throw const NullPointerException(); |
| + if (key == null) throw const ArgumentError(null); |
|
ngeoffray
2012/11/16 12:41:30
new or const?
Lasse Reichstein Nielsen
2012/11/16 15:32:23
Should be "new". There shouldn't even be a const c
|
| int hash = _firstProbe(key.hashCode, _keys.length); |
| int numberOfProbes = 1; |
| int initialHash = hash; |