mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: make eprint[ln] behave same as print[ln] (#7595)
This commit is contained in:
@@ -22,13 +22,13 @@ pub fn print(s any) {
|
||||
}
|
||||
|
||||
pub fn eprintln(s any) {
|
||||
JS.console.error(s)
|
||||
JS.console.error(s.toString())
|
||||
}
|
||||
|
||||
pub fn eprint(s any) {
|
||||
// TODO
|
||||
// $if js.node {
|
||||
JS.process.stderr.write(s)
|
||||
JS.process.stderr.write(s.toString())
|
||||
// } $else {
|
||||
// panic('Cannot `eprint` in a browser, use `eprintln` instead')
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user