diff --git a/vlib/builtin/js/builtin.v b/vlib/builtin/js/builtin.v index bad2c32f520e96..5c2fd4676d7044 100644 --- a/vlib/builtin/js/builtin.v +++ b/vlib/builtin/js/builtin.v @@ -9,7 +9,7 @@ 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) } @@ -17,7 +17,7 @@ pub fn panic(s string) { // 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) }