1
0
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:
Delyan Angelov 2022-06-07 12:15:35 +03:00
parent 7780f56c31
commit 82d23dedf1
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -14,6 +14,14 @@ $if js_freestanding {
#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) {
$if js_freestanding {
#globalPrint(s.str)