| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| index aaed1bbe55713aeb0fb960c503ede290ed3488a1..f097bbb14ae8161fd642ed4ce1a985c40578093e 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor.cpp
|
| @@ -79,6 +79,11 @@ static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| if (!stringArg.prepare())
|
| return;
|
| testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[2]);
|
| + if (!testInterfaceEmptyArg) {
|
| + exceptionState.throwTypeError("parameter 3 is not of type 'TestInterfaceEmpty'.");
|
| + exceptionState.throwIfNeeded();
|
| + return;
|
| + }
|
| if (!isUndefinedOrNull(info[3]) && !info[3]->IsObject()) {
|
| exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not an object.");
|
| exceptionState.throwIfNeeded();
|
| @@ -105,6 +110,11 @@ static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| if (exceptionState.throwIfNeeded())
|
| return;
|
| optionalTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.GetIsolate(), info[8]);
|
| + if (!optionalTestInterfaceEmptyArg) {
|
| + exceptionState.throwTypeError("parameter 9 is not of type 'TestInterfaceEmpty'.");
|
| + exceptionState.throwIfNeeded();
|
| + return;
|
| + }
|
| }
|
| ScriptState* scriptState = ScriptState::current(info.GetIsolate());
|
| ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
|
|