Implement Process.cwd (#41)

* Implement `Process.cwd`
* Update `os` test suite
This commit is contained in:
Dario Vladović
2020-06-13 21:12:34 -07:00
committed by GitHub
parent 2de2d26528
commit 1ab88ed201
5 changed files with 29 additions and 1 deletions
+2
View File
@@ -25,6 +25,7 @@ extern void fileWriteBytes(WrenVM* vm);
extern void platformIsPosix(WrenVM* vm);
extern void platformName(WrenVM* vm);
extern void processAllArguments(WrenVM* vm);
extern void processCwd(WrenVM* vm);
extern void statPath(WrenVM* vm);
extern void statBlockCount(WrenVM* vm);
extern void statBlockSize(WrenVM* vm);
@@ -165,6 +166,7 @@ static ModuleRegistry modules[] =
END_CLASS
CLASS(Process)
STATIC_METHOD("allArguments", processAllArguments)
STATIC_METHOD("cwd", processCwd)
END_CLASS
END_MODULE
MODULE(repl)