Skip to content
Snippets Groups Projects
Commit 0e3b4c73 authored by deuce's avatar deuce
Browse files

*_TO_STRING() considered harmful.

parent 73c588cf
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,7 @@ static enum debug_action script_debug_prompt(struct debugger *dbg, JSScript *scr
name=JS_GetFunctionId(fn);
if(name) {
JSSTRING_TO_STRING(dbg->cx, name, cp, NULL);
JSSTRING_TO_ASTRING(dbg->cx, name, cp, 128, NULL);
msg=xp_asprintf(" %s()", cp);
if(msg) {
dbg->puts(msg);
......@@ -367,7 +367,7 @@ static enum debug_action script_debug_prompt(struct debugger *dbg, JSScript *scr
name=JS_GetFunctionId(fn);
if(name) {
JSSTRING_TO_STRING(dbg->cx, name, cp, NULL);
JSSTRING_TO_ASTRING(dbg->cx, name, cp, 128, NULL);
msg=xp_asprintf("in %s() ", cp);
if(msg) {
dbg->puts(msg);
......
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