Fixed bogus assertion in debug mode.

This commit is contained in:
David Anderson 2008-08-22 17:32:45 -07:00
parent c444e597b6
commit e88386ec38

View File

@ -1097,7 +1097,8 @@ TraceRecorder::import(LIns* base, ptrdiff_t offset, jsval* p, uint8& t,
const char* funName = NULL;
if (*prefix == 'a' || *prefix == 'v') {
mark = JS_ARENA_MARK(&cx->tempPool);
localNames = js_GetLocalNameArray(cx, fp->fun, &cx->tempPool);
if (JS_GET_LOCAL_NAME_COUNT(fp->fun) != 0)
localNames = js_GetLocalNameArray(cx, fp->fun, &cx->tempPool);
funName = fp->fun->atom ? js_AtomToPrintableString(cx, fp->fun->atom) : "<anonymous>";
}
if (!strcmp(prefix, "argv")) {