mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Better branch callback failure message.
This commit is contained in:
parent
56fdf600c3
commit
1cae579899
@ -418,8 +418,10 @@ static JSBool
|
||||
my_BranchCallback(JSContext *cx, JSScript *script)
|
||||
{
|
||||
if (++gBranchCount == gBranchLimit) {
|
||||
fprintf(gErrFile, "too much branching (%lu branch callbacks)\n",
|
||||
gBranchLimit);
|
||||
if (script->filename)
|
||||
fprintf(gErrFile, "%s:", script->filename);
|
||||
fprintf(gErrFile, "%u: script branches too much (%u callbacks)\n",
|
||||
script->lineno, gBranchLimit);
|
||||
gBranchCount = 0;
|
||||
return JS_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user