Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
index a2a5278991b52917665b080bfd97ca23807aa653..44f8a1e7a85e2a92ee440459aa221eefaba9befa 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp |
@@ -862,7 +862,7 @@ bool addHiddenValueToArray(v8::Isolate* isolate, v8::Local<v8::Object> object, v |
} |
v8::Local<v8::Array> array = v8::Local<v8::Array>::Cast(arrayValue); |
- return v8CallBoolean(array->Set(isolate->GetCurrentContext(), v8::Integer::New(isolate, array->Length()), value)); |
+ return v8CallBoolean(array->CreateDataProperty(isolate->GetCurrentContext(), array->Length(), value)); |
} |
void removeHiddenValueFromArray(v8::Isolate* isolate, v8::Local<v8::Object> object, v8::Local<v8::Value> value, int arrayIndex) |