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 84e8dfd8052a7442a6fc5247d7bfeabc0f687803..4898be2d788bb878fe3c42409e5058f1aa00fb5c 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) |
{ |
- 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]. |
+ 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) |
{ |
- 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]. |
+ v8::Local<v8::Object> holder = info.Holder(); |
TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()), v8Value); |
impl->setLenientThisAttribute(cppValue); |