Oops, not enough copying...

This commit is contained in:
Brendan Eich 2008-08-27 13:54:05 -07:00
parent 510ec8bdce
commit 4842b435c5

View File

@ -3576,7 +3576,8 @@ bool
TraceRecorder::record_JSOP_NEW()
{
/* Get immediate argc and find the constructor function. */
unsigned argc = GET_ARGC(cx->fp->regs->pc);
jsbytecode *pc = cx->fp->regs->pc;
unsigned argc = GET_ARGC(pc);
jsval& fval = stackval(0 - (2 + argc));
JS_ASSERT(&fval >= StackBase(cx->fp));