Skip to content

Commit

Permalink
fix catch block mapping in source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Jun 27, 2023
1 parent babcb2c commit 52110fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/js_printer/js_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4390,7 +4390,7 @@ func (p *printer) printStmt(stmt js_ast.Stmt, flags printStmtFlags) {
p.print(")")
}
p.printSpace()
p.printBlock(s.Catch.Loc, s.Catch.Block)
p.printBlock(s.Catch.BlockLoc, s.Catch.Block)
}

if s.Finally != nil {
Expand Down

0 comments on commit 52110fd

Please sign in to comment.