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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrLong.cpp

Issue 2061113002: Remove ExceptionState::throwIfNeeded Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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/tests/results/core/TestInterfaceOrLong.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrLong.cpp b/third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrLong.cpp
index 0e93c7b63d05dca6bdecc3b615d8a22f133fc619..50e7705a7e4f47b0d8b0d16c08fc6d9d4fc2f1bb 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrLong.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrLong.cpp
@@ -85,16 +85,18 @@ void V8TestInterfaceOrLong::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8
if (v8Value->IsNumber()) {
int cppValue = toInt32(isolate, v8Value, NormalConversion, exceptionState);
- if (exceptionState.hadException())
+ if (exceptionState.hadException()) {
return;
+ }
impl.setLong(cppValue);
return;
}
{
int cppValue = toInt32(isolate, v8Value, NormalConversion, exceptionState);
- if (exceptionState.hadException())
+ if (exceptionState.hadException()) {
return;
+ }
impl.setLong(cppValue);
return;
}

Powered by Google App Engine
This is Rietveld 408576698