builtin: add flush_stdout and flush_stderr to builtin.js.v, for feature parity with builtin.c.v

master
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
1 changed files with 8 additions and 0 deletions

View File

@ -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)