better path resolution
This commit is contained in:
@@ -318,7 +318,9 @@ JSC_SCALL(os_system,
|
||||
)
|
||||
|
||||
JSC_CCALL(os_exit,
|
||||
exit(0);
|
||||
int code = 0;
|
||||
if (argc > 0) JS_ToInt32(js, &code, argv[0]);
|
||||
exit(code);
|
||||
)
|
||||
|
||||
static JSValue js_os_dylib_open(JSContext *js, JSValue self, int argc, JSValue *argv)
|
||||
@@ -714,7 +716,7 @@ static const JSCFunctionListEntry js_os_funcs[] = {
|
||||
MIST_FUNC_DEF(os, rusage, 0),
|
||||
MIST_FUNC_DEF(os, mallinfo, 0),
|
||||
MIST_FUNC_DEF(os, system, 1),
|
||||
MIST_FUNC_DEF(os, exit, 0),
|
||||
MIST_FUNC_DEF(os, exit, 1),
|
||||
MIST_FUNC_DEF(os, sleep, 1),
|
||||
MIST_FUNC_DEF(os, dylib_open, 1),
|
||||
MIST_FUNC_DEF(os, dylib_preload, 1),
|
||||
|
||||
Reference in New Issue
Block a user