Fix error location while recording metamethods.

This commit is contained in:
Mike Pall 2010-12-15 19:44:30 +01:00
parent 9666cf52ce
commit badff4ed0a

View File

@ -511,7 +511,7 @@ static int trace_abort(jit_State *J)
frame = J->L->base-1;
pc = J->pc;
while (!isluafunc(frame_func(frame))) {
pc = frame_pc(frame) - 1;
pc = (frame_iscont(frame) ? frame_contpc(frame) : frame_pc(frame)) - 1;
frame = frame_prev(frame);
}
fn = frame_func(frame);