| Index: third_party/WebKit/Source/bindings/core/v8/ToV8.h
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ToV8.h b/third_party/WebKit/Source/bindings/core/v8/ToV8.h
|
| index 4e3de21c32de1a7bba6d8abbe45fc5d97ada8d7b..0338dff4080cbd7373be4a84d3de377ddc8e9de9 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ToV8.h
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ToV8.h
|
| @@ -215,7 +215,7 @@ inline v8::Local<v8::Value> toV8SequenceInternal(const Sequence& sequence, v8::L
|
| v8::Local<v8::Value> value = toV8(*iter, array, isolate);
|
| if (value.IsEmpty())
|
| value = v8::Undefined(isolate);
|
| - if (!v8CallBoolean(array->Set(isolate->GetCurrentContext(), v8::Integer::New(isolate, index++), value)))
|
| + if (!v8CallBoolean(array->CreateDataProperty(isolate->GetCurrentContext(), index++, value)))
|
| return v8::Local<v8::Value>();
|
| }
|
| return array;
|
| @@ -245,7 +245,7 @@ inline v8::Local<v8::Value> toV8(const Vector<std::pair<String, T>>& value, v8::
|
| v8::Local<v8::Value> v8Value = toV8(value[i].second, object, isolate);
|
| if (v8Value.IsEmpty())
|
| v8Value = v8::Undefined(isolate);
|
| - if (!v8CallBoolean(object->Set(isolate->GetCurrentContext(), v8String(isolate, value[i].first), v8Value)))
|
| + if (!v8CallBoolean(object->CreateDataProperty(isolate->GetCurrentContext(), v8String(isolate, value[i].first), v8Value)))
|
| return v8::Local<v8::Value>();
|
| }
|
| return object;
|
|
|