Skip to content

Commit

Permalink
Force fallback source name for stripped bytecode.
Browse files Browse the repository at this point in the history
Reported by Lyrth. LuaJIT#1319
  • Loading branch information
Mike Pall committed Dec 16, 2024
1 parent 811e448 commit e2e0b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lj_bcread.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ static int bcread_header(LexState *ls)
#endif
}
if ((flags & BCDUMP_F_STRIP)) {
ls->chunkname = lj_str_newz(ls->L, ls->chunkarg);
ls->chunkname = lj_str_newz(ls->L, *ls->chunkarg == BCDUMP_HEAD1 ? "=?" : ls->chunkarg);
} else {
MSize len = bcread_uleb128(ls);
bcread_need(ls, len);
Expand Down

0 comments on commit e2e0b1d

Please sign in to comment.