Still porting to lua 5.2

This commit is contained in:
2021-02-28 14:45:09 -05:00
parent 23ae577fbb
commit 5760078208
3 changed files with 9 additions and 9 deletions

View File

@@ -154,7 +154,7 @@ void LuaStack::makeclass(LuaSlot classtab, LuaSlot classname) const {
// Validate the class name.
LS.checkstring(classname);
if (LS.equal(classname, "_G")) {
if (LS.rawequal(classname, "_G")) {
luaL_error(L_, "_G is explicitly not allowed as a class name");
}