| Index: Source/bindings/core/v8/CustomElementConstructorBuilder.cpp
|
| diff --git a/Source/bindings/core/v8/CustomElementConstructorBuilder.cpp b/Source/bindings/core/v8/CustomElementConstructorBuilder.cpp
|
| index 07d975284ae9837da236ef45e51f24ab02051288..82b3d341a33ed70a04b94516db9e857a6dcf13c6 100644
|
| --- a/Source/bindings/core/v8/CustomElementConstructorBuilder.cpp
|
| +++ b/Source/bindings/core/v8/CustomElementConstructorBuilder.cpp
|
| @@ -196,6 +196,8 @@ bool CustomElementConstructorBuilder::createConstructor(Document* document, Cust
|
| // This *configures* the property. ForceSet of a function's
|
| // "prototype" does not affect the value, but can reconfigure the
|
| // property.
|
| + // TODO(bashi): Use CreateDataProperty() instead of ForceSet().
|
| + // http://crbug.com/475206
|
| if (!v8CallBoolean(m_constructor->ForceSet(context, prototypeKey, m_prototype, v8::PropertyAttribute(v8::ReadOnly | v8::DontEnum | v8::DontDelete))))
|
| return false;
|
|
|
| @@ -208,6 +210,8 @@ bool CustomElementConstructorBuilder::createConstructor(Document* document, Cust
|
| return false;
|
|
|
| V8HiddenValue::setHiddenValue(isolate, m_prototype, V8HiddenValue::customElementIsInterfacePrototypeObject(isolate), v8::True(isolate));
|
| + // TODO(bashi): Use CreateDataProperty() instead of ForceSet().
|
| + // http://crbug.com/475206
|
| if (!v8CallBoolean(m_prototype->ForceSet(context, v8String(isolate, "constructor"), m_constructor, v8::DontEnum)))
|
| return false;
|
|
|
|
|