Bug 653631 - Fix faulty inlining of js_GetScriptedCaller (r=mrbkap)

This commit is contained in:
Luke Wagner 2011-04-30 14:31:13 +07:00
parent 89ab1b8024
commit f08365f631

View File

@ -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;
}