mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 02:57:46 +00:00
Enable Getwd() in wasi and add tests
This commit is contained in:
committed by
Ron Evans
parent
039186a2a3
commit
08d0dc0d25
Vendored
+8
@@ -34,4 +34,12 @@ func main() {
|
||||
}
|
||||
|
||||
os.Stdout.Write(data)
|
||||
|
||||
path, err := os.Getwd()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if path == "" {
|
||||
panic("path is empty")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user