Skip to content
Snippets Groups Projects
Commit 576d5d67 authored by rswindell's avatar rswindell
Browse files

Fix bug introduced in rev 1.44: a js.on_exit() handler could not change the

value of js.auto_terminate (e.g. the irc.js could not restore the original
value, thus re-enabling auto-terminate upon exit of the IRC client).
parent 0db888da
Branches
Tags
No related merge requests found
......@@ -446,7 +446,8 @@ void DLLCALL js_EvalOnExit(JSContext *cx, JSObject *obj, js_branch_t* branch)
strListFree(&branch->exit_func);
branch->auto_terminate = auto_terminate;
if(auto_terminate)
branch->auto_terminate = TRUE;
}
JSObject* DLLCALL js_CreateInternalJsObject(JSContext* cx, JSObject* parent, js_branch_t* branch, js_startup_t* startup)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment