[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
pfeldman at chromium.org
pfeldman at chromium.org
Wed Dec 22 11:26:19 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 4f0bafccc0cf29fec0da22c7b48e29964180ab44
Author: pfeldman at chromium.org <pfeldman at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri Jul 23 13:19:18 2010 +0000
2010-07-23 Pavel Feldman <pfeldman at chromium.org>
Not reviewed: Chromium tests fix.
* inspector/CodeGeneratorInspector.pm:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@63967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 0180357..e3569ee 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,9 @@
+2010-07-23 Pavel Feldman <pfeldman at chromium.org>
+
+ Not reviewed: Chromium tests fix.
+
+ * inspector/CodeGeneratorInspector.pm:
+
2010-07-23 Patrick Gansterer <paroga at paroga.com>
Reviewed by Adam Roben.
diff --git a/WebCore/inspector/CodeGeneratorInspector.pm b/WebCore/inspector/CodeGeneratorInspector.pm
index 17c1f64..f554026 100644
--- a/WebCore/inspector/CodeGeneratorInspector.pm
+++ b/WebCore/inspector/CodeGeneratorInspector.pm
@@ -259,8 +259,9 @@ sub generateBackendFunction
push(@function, "{");
my $i = 1; # zero element is the method name.
my $expectedParametersCount = scalar(@argsFiltered);
- push(@function, " if (args->length() != $expectedParametersCount) {");
- push(@function, " *exception = formatWrongArgumentsCountMessage(args->length(), $expectedParametersCount);");
+ my $expectedParametersCountWithMethodName = scalar(@argsFiltered) + 1;
+ push(@function, " if (args->length() != $expectedParametersCountWithMethodName) {");
+ push(@function, " *exception = formatWrongArgumentsCountMessage(args->length() - 1, $expectedParametersCount);");
push(@function, " ASSERT_NOT_REACHED();");
push(@function, " return;");
push(@function, " }");
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list