mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-27 21:25:43 +00:00
Force fallback source name for stripped bytecode.
Reported by Lyrth. #1319
This commit is contained in:
parent
811e448daa
commit
e2e0b1dd2d
@ -443,7 +443,7 @@ static int bcread_header(LexState *ls)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if ((flags & BCDUMP_F_STRIP)) {
|
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 {
|
} else {
|
||||||
MSize len = bcread_uleb128(ls);
|
MSize len = bcread_uleb128(ls);
|
||||||
bcread_need(ls, len);
|
bcread_need(ls, len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user