Skip to content
Snippets Groups Projects
Commit 3258c897 authored by rswindell's avatar rswindell
Browse files

Fix js.exec_dir, exec_path, and exec_file definition for JS scripts executed

via sbbs_t::js_execfile() (e.g. executed via "?modname").
parent feb43e91
Branches
Tags
No related merge requests found
...@@ -647,7 +647,7 @@ long sbbs_t::js_execfile(const char *cmd) ...@@ -647,7 +647,7 @@ long sbbs_t::js_execfile(const char *cmd)
JS_SetBranchCallback(js_cx, js_BranchCallback); JS_SetBranchCallback(js_cx, js_BranchCallback);
js_PrepareToExecute(js_cx, js_scope, path); js_PrepareToExecute(js_cx, js_glob, path);
JS_ExecuteScript(js_cx, js_scope, js_script, &rval); JS_ExecuteScript(js_cx, js_scope, js_script, &rval);
JS_GetProperty(js_cx, js_scope, "exit_code", &rval); JS_GetProperty(js_cx, js_scope, "exit_code", &rval);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment