Skip to content
Snippets Groups Projects
Commit 1f148198 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Handle unknown filename.

parent 3fe9759b
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1382 passed
...@@ -78,6 +78,8 @@ static void newscript_handler(JSContext *cx, ...@@ -78,6 +78,8 @@ static void newscript_handler(JSContext *cx,
return; return;
} }
fname=JS_GetScriptFilename(cx, script); fname=JS_GetScriptFilename(cx, script);
if (fname == NULL)
fname = "<unknown>";
cs->fname=strdup(fname); cs->fname=strdup(fname);
if(cs->fname) if(cs->fname)
fname=getfname(fname); fname=getfname(fname);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment