mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +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;
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user