Skip to content
Snippets Groups Projects
Commit c2c3cdfc authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix js.exec() error message when specified script can't be found

If the search up the scope tree for js.exec_dir fails, the script 'path' would
be left blank leading to a weird error message.
e.g. !JavaScript default.js line 249: Error: Script file () does not exist
parent 70f5fe96
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4562 passed
......@@ -390,6 +390,8 @@ js_execfile(JSContext *cx, uintN argc, jsval *arglist)
path[0]=0;
JS_RESUMEREQUEST(cx, rc);
}
if (*path == '\0')
SAFECOPY(path, cmd);
}
}
free(cmd);
......
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