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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/TestEnumOrDouble.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/TestEnumOrDouble.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/TestEnumOrDouble.cpp b/third_party/WebKit/Source/bindings/tests/results/core/TestEnumOrDouble.cpp
index 71948d7a10cc57fa0192b5e72e27cb23e051411f..ca7e3274d69baa35e7fcb7bcfbc1ae00066ceb3c 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/TestEnumOrDouble.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/TestEnumOrDouble.cpp
@@ -84,16 +84,18 @@ void V8TestEnumOrDouble::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Val
if (v8Value->IsNumber()) {
double cppValue = toRestrictedDouble(isolate, v8Value, exceptionState);
- if (exceptionState.hadException())
+ if (exceptionState.hadException()) {
return;
+ }
impl.setDouble(cppValue);
return;
}
{
V8StringResource<> cppValue = v8Value;
- if (!cppValue.prepare(exceptionState))
+ if (!cppValue.prepare(exceptionState)) {
return;
+ }
const char* validValues[] = {
"",
"EnumValue1",

Powered by Google App Engine
This is Rietveld 408576698