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 64963d73aca41741fb0c6f70fef525c862ac017a..2f9261674e6f7ad374e62d2f7e02077fc7be61f5 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor4.cpp |
@@ -44,6 +44,10 @@ static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) |
TestInterfaceConstructor4* testInterface4Arg; |
{ |
testInterface4Arg = V8TestInterfaceConstructor4::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
+ if (!testInterface4Arg) { |
+ V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToConstruct("TestInterfaceConstructor4", "parameter 1 is not of type 'TestInterfaceConstructor4'.")); |
+ return; |
+ } |
} |
RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(testInterface4Arg); |
v8::Local<v8::Object> wrapper = info.Holder(); |