mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix lexer error for chunks without tokens.
This commit is contained in:
parent
7f013005f6
commit
dfa173b929
@ -378,6 +378,7 @@ int lj_lex_setup(lua_State *L, LexState *ls)
|
|||||||
ls->vtop = 0;
|
ls->vtop = 0;
|
||||||
ls->bcstack = NULL;
|
ls->bcstack = NULL;
|
||||||
ls->sizebcstack = 0;
|
ls->sizebcstack = 0;
|
||||||
|
ls->token = 0;
|
||||||
ls->lookahead = TK_eof; /* No look-ahead token. */
|
ls->lookahead = TK_eof; /* No look-ahead token. */
|
||||||
ls->linenumber = 1;
|
ls->linenumber = 1;
|
||||||
ls->lastline = 1;
|
ls->lastline = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user