| Index: Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| index b19d116e1d339bc6d852f875f96bf70fcad00ac3..1fbfd5082e99560cf8a34737e346de98551b6136 100644
|
| --- a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp
|
| @@ -279,11 +279,9 @@ void V8InjectedScriptHost::getEventListenersMethodCustom(const v8::FunctionCallb
|
| if (info.Length() < 1)
|
| return;
|
|
|
| - EventTarget* target = 0;
|
| - v8::Local<v8::Value> value = info[0];
|
|
|
| - if (V8EventTarget::hasInstance(value, info.GetIsolate()))
|
| - target = V8EventTarget::toNative(value->ToObject());
|
| + v8::Local<v8::Value> value = info[0];
|
| + EventTarget* target = V8EventTarget::toNativeWithTypeCheck(info.GetIsolate(), value);
|
|
|
| // We need to handle a DOMWindow specially, because a DOMWindow wrapper exists on a prototype chain.
|
| if (!target)
|
|
|