LibWeb: Fix missing snake_case-ificiation of function parameter names

This commit is contained in:
Andreas Kling 2020-06-21 00:12:58 +02:00
parent fbfae033cc
commit 246af7f0ff
Notes: sideshowbarker 2024-07-19 05:30:52 +09:00

View file

@ -467,7 +467,7 @@ void generate_implementation(const IDL::Interface& interface)
Vector<String> parameter_names;
size_t argument_index = 0;
for (auto& parameter : function.parameters) {
parameter_names.append(parameter.name);
parameter_names.append(snake_name(parameter.name));
if (parameter.type.name == "DOMString") {
out() << " auto " << snake_name(parameter.name) << " = interpreter.argument(" << argument_index << ").to_string(interpreter);";
out() << " if (interpreter.exception())";