Skip to content

Commit

Permalink
fix(declaration): function for posix compliance (amber-lang#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Sep 19, 2024
1 parent f4ebf0e commit 280dfd7
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 280dfd7

Please sign in to comment.