From fbee4dd20b8a37cec9a99446c26360fc732ff28b Mon Sep 17 00:00:00 2001 From: "pfeldman@chromium.org" Date: Fri, 23 Jul 2010 13:19:18 +0000 Subject: [PATCH] 2010-07-23 Pavel Feldman Not reviewed: Chromium tests fix. * inspector/CodeGeneratorInspector.pm: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@63967 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- WebCore/ChangeLog | 6 ++++++ WebCore/inspector/CodeGeneratorInspector.pm | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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 + + Not reviewed: Chromium tests fix. + + * inspector/CodeGeneratorInspector.pm: + 2010-07-23 Patrick Gansterer 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, " }"); -- 1.8.3.1