Merge fix

This commit is contained in:
Vyacheslav Egorov 2025-02-21 16:38:04 +02:00
parent 47172282ad
commit 6a8da816f4

View file

@ -1575,12 +1575,6 @@ void registerTypeUserData(lua_State* L)
lua_setfield(L, -2, "__type"); lua_setfield(L, -2, "__type");
} }
if (FFlag::LuauUserTypeFunTypeofReturnsType)
{
lua_pushstring(L, "type");
lua_setfield(L, -2, "__type");
}
// Protect metatable from being changed // Protect metatable from being changed
lua_pushstring(L, "The metatable is locked"); lua_pushstring(L, "The metatable is locked");
lua_setfield(L, -2, "__metatable"); lua_setfield(L, -2, "__metatable");