From 94e3084086d22ba3fc74d67aa89e8619d2e514d4 Mon Sep 17 00:00:00 2001 From: Baileyeatspizza Date: Mon, 8 Nov 2021 10:36:32 +0000 Subject: [PATCH] Change _VERSION to display version of luau in use --- VM/src/lbaselib.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VM/src/lbaselib.cpp b/VM/src/lbaselib.cpp index 87fc1631..d1b006da 100644 --- a/VM/src/lbaselib.cpp +++ b/VM/src/lbaselib.cpp @@ -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 */