From 3a20084c8575bb318df57396ef9d33b9da603f8d Mon Sep 17 00:00:00 2001 From: Sainan Date: Wed, 19 Jul 2023 23:13:51 +0200 Subject: [PATCH] Re-add check --- src/lparser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lparser.cpp b/src/lparser.cpp index 7515644aad..7ad1c7668e 100644 --- a/src/lparser.cpp +++ b/src/lparser.cpp @@ -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;