mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
Bug 653631 - Fix faulty inlining of js_GetScriptedCaller (r=mrbkap)
This commit is contained in:
parent
89ab1b8024
commit
f08365f631
@ -1766,15 +1766,12 @@ js_GetScriptLineExtent(JSScript *script)
|
||||
const char *
|
||||
js::CurrentScriptFileAndLineSlow(JSContext *cx, uintN *linenop)
|
||||
{
|
||||
if (!cx->running()) {
|
||||
StackFrame *fp = js_GetScriptedCaller(cx, NULL);
|
||||
if (!fp) {
|
||||
*linenop = 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
StackFrame *fp = cx->fp();
|
||||
while (fp->isDummyFrame())
|
||||
fp = fp->prev();
|
||||
|
||||
*linenop = js_FramePCToLineNumber(cx, fp);
|
||||
return fp->script()->filename;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user