Change _VERSION to display version of luau in use

This commit is contained in:
Baileyeatspizza 2021-11-08 10:36:32 +00:00
parent 46244d2ea7
commit 94e3084086

View file

@ -449,7 +449,8 @@ LUALIB_API int luaopen_base(lua_State* L)
/* open lib into global table */
luaL_register(L, "_G", base_funcs);
lua_pushliteral(L, "Luau");
lua_pushliteral(L, "Luau 0.503"); /* set _VERSION to display the version of Luau currently in use */
lua_setglobal(L, "_VERSION"); /* set global _VERSION */
/* `ipairs' and `pairs' need auxiliary functions as upvalues */