Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp |
index 663c47d55ec6b3c925913ac53a2e5dcaa74b5062..5d07960878c819a0469c8f0c1b795b09ff960a0c 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.cpp |
@@ -53,6 +53,10 @@ static void voidMethodDocumentMethod(const v8::FunctionCallbackInfo<v8::Value>& |
Document* document; |
{ |
document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
+ if (!document) { |
+ V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodDocument", "TestInterface3", "parameter 1 is not of type 'Document'.")); |
+ return; |
+ } |
} |
impl->voidMethodDocument(document); |
} |