Bug 456511 - (imacros) TM: Make conversion work on arbitrary JSObjects (r=gal).

This commit is contained in:
Brendan Eich
2008-11-13 00:30:20 -08:00
parent 54243049d8
commit 1a344ffefb
21 changed files with 829 additions and 215 deletions

View File

@@ -1171,8 +1171,7 @@ js_ComputeFilename(JSContext *cx, JSStackFrame *caller,
JS_ASSERT(caller->regs->pc[JSOP_EVAL_LENGTH] == JSOP_LINENO);
*linenop = GET_UINT16(caller->regs->pc + JSOP_EVAL_LENGTH);
} else {
*linenop = js_PCToLineNumber(cx, caller->script,
caller->regs ? caller->regs->pc : NULL);
*linenop = js_FramePCToLineNumber(cx, caller);
}
return caller->script->filename;
}