Skip to content

Commit

Permalink
fix: enum with no associated values
Browse files Browse the repository at this point in the history
  • Loading branch information
fcoury committed Jul 12, 2024
1 parent 5d7fcec commit 7aac2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transpiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl JsTranspiler {
.join(", ");
format!("new {}.{}({})", target, call, args_str)
} else {
format!("new {}.{}", target, call)
format!("{}.{}", target, call)
}
}
Expr::FunctionCall(name, args, _) => {
Expand Down

0 comments on commit 7aac2aa

Please sign in to comment.