Still porting to lua 5.2
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user