builtin: add flush_stdout and flush_stderr to builtin.js.v, for feature parity with builtin.c.v
parent
7780f56c31
commit
82d23dedf1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue