Skip to content

Commit

Permalink
Re-add check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainan committed Jul 19, 2023
1 parent 6cc65af commit 3a20084
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,8 @@ static void applyextends (LexState *ls, expdesc *v, TString *parent, int line) {

expdesc f;
singlevaraux(fs, luaS_newliteral(ls->L, "Pluto_operator_extends"), &f, 1);
lua_assert(f.k != VVOID);
if (f.k == VVOID)
luaX_syntaxerror(ls, "what the fuck?");
luaK_exp2nextreg(fs, &f);

expdesc args = *v;
Expand Down

0 comments on commit 3a20084

Please sign in to comment.