Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: JalonSolov <[email protected]>
  • Loading branch information
spytheman and JalonSolov authored Jan 6, 2025
1 parent f6c31ab commit f706e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/builtin/js/builtin.v
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ fn (a any) toString()
// panic prints an error message, then exits the process with exit code of 1.
@[noreturn]
pub fn panic(s string) {
eprintln('V panic: ${s}')
eprintln('V panic: ' + s)
eprintln(js_stacktrace())
exit(1)
}

// panic_n prints an error message, followed by the given number, then exits the process with exit code of 1.
@[noreturn]
pub fn panic_n(s string, n i64) {
eprintln('V panic: ${s}')
eprintln('V panic: ' + s)
eprintln(js_stacktrace())
exit(1)
}
Expand Down

0 comments on commit f706e8c

Please sign in to comment.