mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
LibWeb: Fix missing snake_case-ificiation of function parameter names
This commit is contained in:
parent
fbfae033cc
commit
246af7f0ff
Notes:
sideshowbarker
2024-07-19 05:30:52 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/246af7f0ff5
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ void generate_implementation(const IDL::Interface& interface)
|
||||||
Vector<String> parameter_names;
|
Vector<String> parameter_names;
|
||||||
size_t argument_index = 0;
|
size_t argument_index = 0;
|
||||||
for (auto& parameter : function.parameters) {
|
for (auto& parameter : function.parameters) {
|
||||||
parameter_names.append(parameter.name);
|
parameter_names.append(snake_name(parameter.name));
|
||||||
if (parameter.type.name == "DOMString") {
|
if (parameter.type.name == "DOMString") {
|
||||||
out() << " auto " << snake_name(parameter.name) << " = interpreter.argument(" << argument_index << ").to_string(interpreter);";
|
out() << " auto " << snake_name(parameter.name) << " = interpreter.argument(" << argument_index << ").to_string(interpreter);";
|
||||||
out() << " if (interpreter.exception())";
|
out() << " if (interpreter.exception())";
|
||||||
|
|
Loading…
Reference in a new issue