Index: Source/bindings/tests/results/V8TestSVG.cpp |
diff --git a/Source/bindings/tests/results/V8TestSVG.cpp b/Source/bindings/tests/results/V8TestSVG.cpp |
index 1cb35b4097f585fb8c518262c3d155bb602a3b3c..5f3aa3df36c6997cafaec354e90e28e14b0ebdd2 100644 |
--- a/Source/bindings/tests/results/V8TestSVG.cpp |
+++ b/Source/bindings/tests/results/V8TestSVG.cpp |
@@ -227,7 +227,7 @@ static void strictSVGPointMethodMethod(const v8::FunctionCallbackInfo<v8::Value> |
return; |
} |
TestSVG* imp = V8TestSVG::toNative(info.Holder()); |
- if (info.Length() > 0 && !info[0]->IsUndefined() && !V8SVGPoint::hasInstance(info[0], info.GetIsolate())) { |
+ if (info.Length() > 0 && (isUndefinedOrNull(info[0]) || !V8SVGPoint::hasInstance(info[0], info.GetIsolate()))) { |
exceptionState.throwTypeError("parameter 1 is not of type 'SVGPoint'."); |
exceptionState.throwIfNeeded(); |
return; |