Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
index fc5cf2383060f9e3f868763fb0e5e93ada386443..9bacccfe3e3b7c47b123504fc72d8d864e23a1ac 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp |
@@ -82,6 +82,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", "TestIntegerIndexed", "parameter 1 is not of type 'Document'.")); |
+ return; |
+ } |
} |
impl->voidMethodDocument(document); |
} |