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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h

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/ScriptPromiseProperty.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
index 61679bc0ffeedf9cf7d840eac24cf9b674dac549..1e86a67f4e1849579d79536195810ee9d6c5ba77 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptPromiseProperty.h
@@ -119,10 +119,7 @@ void ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::reject(PassR
template<typename HolderType, typename ResolvedType, typename RejectedType>
v8::Local<v8::Object> ScriptPromiseProperty<HolderType, ResolvedType, RejectedType>::holder(v8::Isolate* isolate, v8::Local<v8::Object> creationContext)
{
- v8::Local<v8::Value> value = toV8(m_holder, creationContext, isolate);
- if (value.IsEmpty())
- return v8::Local<v8::Object>();
- return value.As<v8::Object>();
+ return toV8(m_holder, creationContext, isolate).template As<v8::Object>();
}
template<typename HolderType, typename ResolvedType, typename RejectedType>

Powered by Google App Engine
This is Rietveld 408576698