diff options
author | 2023-05-08 23:39:02 -0700 | |
---|---|---|
committer | 2023-05-08 23:39:02 -0700 | |
commit | c35518e6d674e81bf9374463aabdb0d1165cca71 (patch) | |
tree | cb83f2d7dfaf446aa1cbab2dbec564a0cc04a775 /src | |
parent | 232a25b77f35e52277b9ecc2b276aa6bd66273f5 (diff) | |
download | bun-c35518e6d674e81bf9374463aabdb0d1165cca71.tar.gz bun-c35518e6d674e81bf9374463aabdb0d1165cca71.tar.zst bun-c35518e6d674e81bf9374463aabdb0d1165cca71.zip |
Fixes #2807
we will look at the minify tests for uglifyjs too
Diffstat (limited to 'src')
-rw-r--r-- | src/js_printer.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js_printer.zig b/src/js_printer.zig index ade7c5594..9e2d0ad0c 100644 --- a/src/js_printer.zig +++ b/src/js_printer.zig @@ -983,6 +983,9 @@ fn NewPrinter( p.printNewline(); p.options.indent += 1; p.printStmt(stmt) catch unreachable; + if (stmt.data == .s_expr and stmt.data.s_expr.value.data == .e_missing) { + p.printSemicolonIfNeeded(); + } p.options.unindent(); }, } |