Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp |
index 3432866dbe7fbc0962b07f7dc58c71711181ca99..9a071599bd0266ad1d75807c8f0b9a4de25df729 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp |
@@ -57,8 +57,9 @@ static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) |
V8StringResource<> usvStringArg; |
{ |
usvStringArg = toUSVString(info.GetIsolate(), info[0], exceptionState); |
- if (exceptionState.throwIfNeeded()) |
+ if (exceptionState.hadException()) { |
return; |
+ } |
} |
TestInterfaceConstructor4* impl = TestInterfaceConstructor4::create(usvStringArg); |
v8::Local<v8::Object> wrapper = info.Holder(); |
@@ -82,11 +83,9 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
break; |
default: |
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length())); |
- exceptionState.throwIfNeeded(); |
return; |
} |
exceptionState.throwTypeError("No matching constructor signature."); |
- exceptionState.throwIfNeeded(); |
} |
} // namespace TestInterfaceConstructor4V8Internal |