Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp

Issue 2267403006: Remove redundant IsEmpty checks after calling toV8() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
index 8689282361e7631e7c69343cf1a44397a6668b80..cc73b9374a72f407f4cdfafbe15f4b3aba035a6e 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8LazyEventListener.cpp
@@ -69,8 +69,6 @@ v8::Local<v8::Object> toObjectWrapper(T* domObject, ScriptState* scriptState)
if (!domObject)
return v8::Object::New(scriptState->isolate());
v8::Local<v8::Value> value = toV8(domObject, scriptState->context()->Global(), scriptState->isolate());
- if (value.IsEmpty())
- return v8::Object::New(scriptState->isolate());
return v8::Local<v8::Object>::New(scriptState->isolate(), value.As<v8::Object>());
}

Powered by Google App Engine
This is Rietveld 408576698