Bug 517250 - Fix a bad assert. r=waldo

This commit is contained in:
Blake Kaplan 2009-09-17 12:31:42 -07:00
parent 963fd74e53
commit 712df10db4

View File

@ -2363,7 +2363,7 @@ js_TraceStackFrame(JSTracer *trc, JSStackFrame *fp)
JS_ASSERT(nslots >= fp->script->nfixed);
} else {
nslots = fp->script->nfixed;
JS_ASSERT_IF(!fp->regs->sp, nslots == 0);
JS_ASSERT_IF(fp->regs && !fp->regs->sp, nslots == 0);
}
TRACE_JSVALS(trc, nslots, fp->slots, "slot");
}