mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: add flush_stdout and flush_stderr to builtin.js.v, for feature parity with builtin.c.v
This commit is contained in:
parent
7780f56c31
commit
82d23dedf1
@ -14,6 +14,14 @@ $if js_freestanding {
|
|||||||
#globalPrint = globalThis.print
|
#globalPrint = globalThis.print
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn flush_stdout() {
|
||||||
|
// needed for parity with builtin.c.v
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn flush_stderr() {
|
||||||
|
// needed for parity with builtin.c.v
|
||||||
|
}
|
||||||
|
|
||||||
pub fn println(s string) {
|
pub fn println(s string) {
|
||||||
$if js_freestanding {
|
$if js_freestanding {
|
||||||
#globalPrint(s.str)
|
#globalPrint(s.str)
|
||||||
|
Loading…
Reference in New Issue
Block a user