Skip to content
Snippets Groups Projects
Commit 25d0eeb1 authored by deuce's avatar deuce
Browse files

eval() js.on_exit() strings in the same scope as the script.

parent ef77841c
No related branches found
No related tags found
No related merge requests found
......@@ -643,7 +643,7 @@ long sbbs_t::js_execfile(const char *cmd)
JS_ReportPendingException(js_cx); /* Added Dec-4-2005, rswindell */
js_EvalOnExit(js_cx, js_glob, &js_branch);
js_EvalOnExit(js_cx, js_scope, &js_branch);
JS_GetProperty(js_cx, js_glob, "exit_code", &rval);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment