| 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 594df2158d130a957f7bdb5ebc4bc7fe480f51da..f55ea7a3e8ae2121f3f32b41c9c8f8aa8b7f952c 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp
|
| @@ -634,11 +634,9 @@ static void windowExposedAttributeAttributeSetterCallback(const v8::FunctionCall
|
|
|
| static void lenientThisAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - v8::Local<v8::Object> holder = V8TestInterface::findInstanceInPrototypeChain(info.This(), info.GetIsolate());
|
| - if (holder.IsEmpty())
|
| + if (!V8TestInterface::hasInstance(info.Holder(), info.GetIsolate()))
|
| return; // Return silently because of [LenientThis].
|
| - // Note that it's okay to use |holder|, but |info.Holder()| is still unsafe
|
| - // and must not be used.
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
|
| v8SetReturnValue(info, impl->lenientThisAttribute().v8Value());
|
| }
|
| @@ -652,11 +650,9 @@ static void lenientThisAttributeAttributeGetterCallback(const v8::FunctionCallba
|
|
|
| static void lenientThisAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| - v8::Local<v8::Object> holder = V8TestInterface::findInstanceInPrototypeChain(info.This(), info.GetIsolate());
|
| - if (holder.IsEmpty())
|
| + if (!V8TestInterface::hasInstance(info.Holder(), info.GetIsolate()))
|
| return; // Return silently because of [LenientThis].
|
| - // Note that it's okay to use |holder|, but |info.Holder()| is still unsafe
|
| - // and must not be used.
|
| + v8::Local<v8::Object> holder = info.Holder();
|
| TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
|
| ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value);
|
| impl->setLenientThisAttribute(cppValue);
|
|
|