diff --git a/src/objects.cc b/src/objects.cc index e2c5bc99a4..74f3e802f8 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -2958,7 +2958,7 @@ Object* JSObject::LookupAccessor(String* name, bool is_getter) { // Make the lookup and include prototypes. int accessor_index = is_getter ? kGetterIndex : kSetterIndex; - uint32_t index; + uint32_t index = 0; // Initialize index to make compiler happy. if (name->AsArrayIndex(&index)) { for (Object* obj = this; obj != Heap::null_value();