Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tdewolff/parse
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Aug 31, 2022
2 parents e61ad7a + e5690f8 commit debb854
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ func (n BlockStmt) JS() string {
s += "{ "
}
for _, item := range n.List {
s += item.JS() + "; "
if _, isEmpty := item.(*EmptyStmt); !isEmpty {
s += item.JS() + "; "
}
}
if n.Scope.Parent != nil {
s += "}"
Expand Down

0 comments on commit debb854

Please sign in to comment.