-
haraken@chromium.org authored
in CodeGeneratorJS.pm https://bugs.webkit.org/show_bug.cgi?id=75830 Reviewed by Adam Barth. The code in CodeGeneratorJS.pm to build a method argument string is dirty and error-prone. It is concatenating arguments one by one judging whether ", " is necessary or not. This patch refactors the code so that it pushes all arguments into @arguments and then builds a method string by join(", ", @arguments). Test: bindings/scripts/test/* * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): (GenerateParametersCheck): (GenerateImplementationFunctionCall): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
ffe46213