diff --git a/vlib/builtin/js/builtin.js.v b/vlib/builtin/js/builtin.js.v index 71e40f4c59..5feef9b72a 100644 --- a/vlib/builtin/js/builtin.js.v +++ b/vlib/builtin/js/builtin.js.v @@ -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)