Skip to content

Commit

Permalink
fix v -b js examples/js_dom_cube/cube.js.v on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Jan 5, 2025
1 parent 78fce59 commit aca5557
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion vlib/builtin/js/builtin.v
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ fn (a any) toString()

@[noreturn]
pub fn panic(s string) {
eprintln('V panic: ${s}\n${js_stacktrace()}')
eprintln('V panic: ${s}')
eprintln(js_stacktrace())
exit(1)
}

@[noreturn]
pub fn panic_n(s string, n i64) {
eprintln('V panic: ${s}')
eprintln(js_stacktrace())
exit(1)
}

Expand Down

0 comments on commit aca5557

Please sign in to comment.