| 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",
|
|
|