Commit d49facc8 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Flush console output stream after executing a script

Solves problem of status output lines being interleved with console
output (e.g. from print()) after executing a script.
parent b945e5f3
Pipeline #3128 passed with stage
in 9 minutes and 50 seconds
......@@ -1082,6 +1082,7 @@ long js_exec(const char *fname, const char* buf, char** args)
cb.events_supported = TRUE;
exec_result = JS_ExecuteScript(js_cx, js_glob, js_script, &rval);
js_handle_events(js_cx, &cb, &terminated);
char *p;
if(buf != NULL) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment