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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.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/V8NodeFilterCondition.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp b/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp
index d1eadaa3a78e96b021e5daef3163c10b70edc263..a4f4c43b5001522c9c7af514e64f30346442c01c 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8NodeFilterCondition.cpp
@@ -93,12 +93,6 @@ unsigned V8NodeFilterCondition::acceptNode(Node* node, ExceptionState& exception
}
v8::Local<v8::Value> nodeWrapper = toV8(node, m_scriptState.get());
- if (nodeWrapper.IsEmpty()) {
- if (exceptionCatcher.HasCaught())
- exceptionState.rethrowV8Exception(exceptionCatcher.Exception());
- return NodeFilter::kFilterReject;
- }
-
v8::Local<v8::Value> result;
v8::Local<v8::Value> args[] = { nodeWrapper };
if (!V8ScriptRunner::callFunction(callback, m_scriptState->getExecutionContext(), receiver, 1, args, isolate).ToLocal(&result)) {

Powered by Google App Engine
This is Rietveld 408576698