summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorAndrei Popescu <andreip@google.com>2010-04-12 12:02:36 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-04-12 12:02:37 -0700
commit61c1b0ac380b1947aae2bd2394cc255e0c35ebf9 (patch)
treeee479346e40de1daf97ac24e65d20878065a4763 /WebCore
parent164756aae729daa66d9e87c1c930be7568054912 (diff)
parent2c5b09caa6caba78a6d943c1ae480ca542a1157a (diff)
downloadexternal_webkit-61c1b0ac380b1947aae2bd2394cc255e0c35ebf9.zip
external_webkit-61c1b0ac380b1947aae2bd2394cc255e0c35ebf9.tar.gz
external_webkit-61c1b0ac380b1947aae2bd2394cc255e0c35ebf9.tar.bz2
Merge "Cherry pick http://src.chromium.org/viewvc/chrome?view=rev&revision=43874" into froyo
Diffstat (limited to 'WebCore')
-rwxr-xr-xWebCore/bindings/v8/custom/V8WebKitPointConstructor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/bindings/v8/custom/V8WebKitPointConstructor.cpp b/WebCore/bindings/v8/custom/V8WebKitPointConstructor.cpp
index 58f810b..1959454 100755
--- a/WebCore/bindings/v8/custom/V8WebKitPointConstructor.cpp
+++ b/WebCore/bindings/v8/custom/V8WebKitPointConstructor.cpp
@@ -43,6 +43,10 @@ namespace WebCore {
v8::Handle<v8::Value> V8WebKitPoint::constructorCallback(const v8::Arguments& args)
{
INC_STATS("DOM.WebKitPoint.Constructor");
+
+ if (!args.IsConstructCall())
+ return throwError("DOM object constructor cannot be called as a function.");
+
float x = 0;
float y = 0;
if (args.Length() > 1) {