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

Bugfix: exceptions occurring in JS script run via js_execfile (from external()

or bbs.exec()) from another JS script would not be reported to the console/log.
parent 38936cbd
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2003 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -633,6 +633,8 @@ long sbbs_t::js_execfile(const char *cmd)
JS_ExecuteScript(js_cx, js_scope, js_script, &rval);
JS_ReportPendingException(js_cx); /* Added Dec-4-2005, rswindell */
js_EvalOnExit(js_cx, js_glob, &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