| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 60bf5d4e85bd408352667e3ed24cfe1aa762a587..edf07fef73e62d414ec7d1c43dfba6d17957cc04 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -12351,7 +12351,7 @@ static void InvalidatePrototypeChainsInternal(Map* map) {
|
| WeakFixedArray::Iterator iterator(proto_info->prototype_users());
|
| // For now, only maps register themselves as users.
|
| Map* user;
|
| - while ((user = iterator.Next<Map>())) {
|
| + while ((user = iterator.Next<Map>()) != nullptr) {
|
| // Walk the prototype chain (backwards, towards leaf objects) if necessary.
|
| InvalidatePrototypeChainsInternal(user);
|
| }
|
| @@ -13333,7 +13333,7 @@ void SharedFunctionInfo::SetScript(Handle<SharedFunctionInfo> shared,
|
| if (FLAG_enable_slow_asserts) {
|
| WeakFixedArray::Iterator iterator(*list);
|
| SharedFunctionInfo* next;
|
| - while ((next = iterator.Next<SharedFunctionInfo>())) {
|
| + while ((next = iterator.Next<SharedFunctionInfo>()) != nullptr) {
|
| DCHECK_NE(next, *shared);
|
| }
|
| }
|
|
|