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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.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/V8PerformanceObserverCallback.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.cpp
index b6b52f225454ff1cbcea33d5410a96abffd77b9f..1ba08cffef4fc5fe5ce3b5bfd85c3d2a2467fbe2 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerformanceObserverCallback.cpp
@@ -46,9 +46,6 @@ void V8PerformanceObserverCallback::handleEvent(PerformanceObserverEntryList* en
v8::Local<v8::Object> thisObject = v8::Local<v8::Object>::Cast(observerHandle);
v8::Local<v8::Value> entriesHandle = toV8(entries, m_scriptState->context()->Global(), m_scriptState->isolate());
- if (entriesHandle.IsEmpty()) {
- return;
- }
v8::Local<v8::Value> argv[] = { entriesHandle, observerHandle };
v8::TryCatch exceptionCatcher(m_scriptState->isolate());

Powered by Google App Engine
This is Rietveld 408576698