Index: third_party/WebKit/Source/bindings/core/v8/V8WorkerGlobalScopeEventListener.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8WorkerGlobalScopeEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8WorkerGlobalScopeEventListener.cpp |
index 3546a873a016c81e52d1b564463a533cebb3f3bc..1f0ebc682608d2c7cd57286d9c4ab3f8c3f0298d 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8WorkerGlobalScopeEventListener.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8WorkerGlobalScopeEventListener.cpp |
@@ -58,9 +58,6 @@ void V8WorkerGlobalScopeEventListener::handleEvent(ScriptState* scriptState, Eve |
// Get the V8 wrapper for the event object. |
v8::Local<v8::Value> jsEvent = toV8(event, scriptState->context()->Global(), isolate()); |
- if (jsEvent.IsEmpty()) |
- return; |
- |
invokeEventHandler(scriptState, event, v8::Local<v8::Value>::New(isolate(), jsEvent)); |
} |
@@ -94,8 +91,6 @@ v8::Local<v8::Object> V8WorkerGlobalScopeEventListener::getReceiverObject(Script |
EventTarget* target = event->currentTarget(); |
v8::Local<v8::Value> value = toV8(target, scriptState->context()->Global(), isolate()); |
- if (value.IsEmpty()) |
- return v8::Local<v8::Object>(); |
return v8::Local<v8::Object>::New(isolate(), v8::Local<v8::Object>::Cast(value)); |
} |