Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Aug 18, 2024
1 parent 287d102 commit 2748040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func (e *FunctionExpression) String() string {
if len(e.Body) != 0 {
bodyStr = "\n" + indent(e.Body.String()) + "\n"
}
return fmt.Sprintf("func(%s%s) {%s}", strings.Join(e.Parameters, ", "), ellipsisStr, bodyStr)
return fmt.Sprintf("function(%s%s) {%s}", strings.Join(e.Parameters, ", "), ellipsisStr, bodyStr)
}

type Subscript struct {
Expand Down

0 comments on commit 2748040

Please sign in to comment.