| Index: runtime/lib/collection_patch.dart
|
| diff --git a/runtime/lib/collection_patch.dart b/runtime/lib/collection_patch.dart
|
| index ea953063fe5c055d8f0b28e1be21391f4a4dca02..d2331c37030574eeb62da48fe3f2f32c72ac2d14 100644
|
| --- a/runtime/lib/collection_patch.dart
|
| +++ b/runtime/lib/collection_patch.dart
|
| @@ -583,15 +583,16 @@ class _HashSet<E> extends _HashSetBase<E> implements HashSet<E> {
|
|
|
| // Set.
|
|
|
| - void add(E element) {
|
| + bool add(E element) {
|
| int hashCode = _hashCode(element);
|
| int index = hashCode & (_buckets.length - 1);
|
| HashSetEntry entry = _buckets[index];
|
| while (entry != null) {
|
| - if (_equals(entry.key, element)) return;
|
| + if (_equals(entry.key, element)) return false;
|
| entry = entry.next;
|
| }
|
| _addEntry(element, hashCode, index);
|
| + return true;
|
| }
|
|
|
| void addAll(Iterable<E> objects) {
|
|
|