mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: make vlib/v/util compile on JS backend (#12660)
This commit is contained in:
@@ -125,3 +125,14 @@ pub fn getwd() string {
|
||||
|
||||
return res
|
||||
}
|
||||
|
||||
pub fn getuid() int {
|
||||
res := 0
|
||||
#if (process.getuid) res.val = process.getuid();
|
||||
|
||||
return res
|
||||
}
|
||||
|
||||
pub fn execvp(cmd string, args []string) ? {
|
||||
panic('os.execvp() is not available on JS backend')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user