Skip to content

Commit

Permalink
fix(declaration): function for posix compliance (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 authored Aug 10, 2024
1 parent 8557cee commit 3108f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/function/declaration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ impl TranslateModule for FunctionDeclaration {
let name = format!("{}__{}_v{}", self.name, self.id, index);
meta.fun_name = Some((self.name.clone(), self.id, index));
// Parse the function body
result.push(format!("function {name} {{"));
result.push(format!("{name}() {{"));
if let Some(args) = self.set_args_as_variables(meta, function, &self.arg_refs) {
result.push(args);
}
Expand Down

0 comments on commit 3108f7d

Please sign in to comment.