add runtime.gc.extend

This commit is contained in:
ValKmjolnir
2022-12-04 20:28:51 +08:00
parent e43bd1eaf2
commit c88cbd0063
10 changed files with 237 additions and 135 deletions
+4 -1
View File
@@ -479,7 +479,10 @@ var os={
# runtime gives us some functions that we could manage it manually.
var runtime={
# command line arguments
argv: func(){return __sysargv;}
argv: func(){return __sysargv;},
gc: {
extend: func(type){return __gcextd;}
}
};
# functions that not supported in this runtime: