| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp
|
| index 5195ef704fdee1cda273f5e03530b925cfb2e5cb..a324180f0fc9f942bd156c30c6a789231150be23 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp
|
| @@ -529,9 +529,9 @@ static void windowExposedAttributeAttributeSetterCallback(const v8::FunctionCall
|
|
|
| static void lenientThisAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - if (!V8TestInterface::hasInstance(info.Holder(), info.GetIsolate()))
|
| + v8::Local<v8::Object> holder = V8TestInterface::findInstanceInPrototypeChain(info.This(), info.GetIsolate());
|
| + if (holder.IsEmpty())
|
| return; // Return silently because of [LenientThis].
|
| - v8::Local<v8::Object> holder = info.Holder();
|
| TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
|
| v8SetReturnValue(info, impl->lenientThisAttribute().v8Value());
|
| }
|
| @@ -543,9 +543,9 @@ static void lenientThisAttributeAttributeGetterCallback(const v8::FunctionCallba
|
|
|
| static void lenientThisAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - if (!V8TestInterface::hasInstance(info.Holder(), info.GetIsolate()))
|
| + v8::Local<v8::Object> holder = V8TestInterface::findInstanceInPrototypeChain(info.This(), info.GetIsolate());
|
| + if (holder.IsEmpty())
|
| return; // Return silently because of [LenientThis].
|
| - v8::Local<v8::Object> holder = info.Holder();
|
| TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
|
| ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
|
| impl->setLenientThisAttribute(cppValue);
|
|
|