Implement Process.version (#42)

* Implement `Process.version`
* Update`os` test suite
This commit is contained in:
Dario Vladović
2020-06-13 21:23:02 -07:00
committed by GitHub
parent 1ab88ed201
commit e4a0fa485e
5 changed files with 17 additions and 0 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 processVersion(WrenVM* vm);
extern void processCwd(WrenVM* vm);
extern void statPath(WrenVM* vm);
extern void statBlockCount(WrenVM* vm);
@@ -166,6 +167,7 @@ static ModuleRegistry modules[] =
END_CLASS
CLASS(Process)
STATIC_METHOD("allArguments", processAllArguments)
STATIC_METHOD("version", processVersion)
STATIC_METHOD("cwd", processCwd)
END_CLASS
END_MODULE