1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

jsgen: class -> factory

This commit is contained in:
Leah Lundqvist
2020-05-21 22:36:06 +02:00
committed by GitHub
parent 1633675c11
commit f2ea8ca62c
5 changed files with 204 additions and 29 deletions

View File

@ -7,10 +7,10 @@ module builtin
fn JS.console.log(arg ...string)
fn JS.process.stdout.write(arg string)
pub fn println(s string) {
pub fn println(s any) {
JS.console.log(s)
}
pub fn print(s string) {
pub fn print(s any) {
JS.process.stdout.write(s)
}