mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Fix error location while recording metamethods.
This commit is contained in:
parent
9666cf52ce
commit
badff4ed0a
@ -511,7 +511,7 @@ static int trace_abort(jit_State *J)
|
|||||||
frame = J->L->base-1;
|
frame = J->L->base-1;
|
||||||
pc = J->pc;
|
pc = J->pc;
|
||||||
while (!isluafunc(frame_func(frame))) {
|
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);
|
frame = frame_prev(frame);
|
||||||
}
|
}
|
||||||
fn = frame_func(frame);
|
fn = frame_func(frame);
|
||||||
|
Loading…
Reference in New Issue
Block a user