Index: src/objects.cc |
=================================================================== |
--- src/objects.cc (revision 4751) |
+++ src/objects.cc (working copy) |
@@ -2700,7 +2700,7 @@ |
return Heap::undefined_value(); |
} |
- uint32_t index; |
+ uint32_t index = 0; |
bool is_element = name->AsArrayIndex(&index); |
if (is_element && IsJSArray()) return Heap::undefined_value(); |
@@ -2958,7 +2958,7 @@ |
// Make the lookup and include prototypes. |
int accessor_index = is_getter ? kGetterIndex : kSetterIndex; |
- uint32_t index; |
+ uint32_t index = 0; |
if (name->AsArrayIndex(&index)) { |
for (Object* obj = this; |
obj != Heap::null_value(); |