mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: codegen & vlib fixes, replace the Game of Life CLI example (#12272)
This commit is contained in:
@ -10,8 +10,10 @@ pub const (
|
||||
args = []string{}
|
||||
)
|
||||
|
||||
$if js_node {
|
||||
#$process.argv.forEach(function(val,index) { os__args.arr[index] = new string(val); })
|
||||
fn init() {
|
||||
$if js_node {
|
||||
#$process.argv.forEach(function(val,index) { os__args.arr[index] = new string(val); })
|
||||
}
|
||||
}
|
||||
|
||||
// real_path returns the full absolute path for fpath, with all relative ../../, symlinks and so on resolved.
|
||||
|
Reference in New Issue
Block a user