| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 994429a013426463dd82c29a00664612a85ba010..09a0ae89ce39e2765cb94cfb30f4c00507172364 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -3661,7 +3661,7 @@ i::MaybeHandle<i::Object> DeleteObjectProperty(
|
| i::Isolate* isolate, i::Handle<i::JSReceiver> receiver,
|
| i::Handle<i::Object> key, i::LanguageMode language_mode) {
|
| // Check if the given key is an array index.
|
| - uint32_t index;
|
| + uint32_t index = 0;
|
| if (key->ToArrayIndex(&index)) {
|
| // In Firefox/SpiderMonkey, Safari and Opera you can access the
|
| // characters of a string using [] notation. In the case of a
|
| @@ -3972,7 +3972,7 @@ Maybe<bool> v8::Object::Has(Local<Context> context, Local<Value> key) {
|
| auto key_obj = Utils::OpenHandle(*key);
|
| Maybe<bool> maybe = Nothing<bool>();
|
| // Check if the given key is an array index.
|
| - uint32_t index;
|
| + uint32_t index = 0;
|
| if (key_obj->ToArrayIndex(&index)) {
|
| maybe = i::JSReceiver::HasElement(self, index);
|
| } else {
|
|
|