From 8d784bb03aafda7dbd27e9006526cb1f660b26e4 Mon Sep 17 00:00:00 2001 From: PhoenixWhitefire Date: Sat, 27 Sep 2025 15:34:19 +0530 Subject: [PATCH 1/2] Change `auxgetinfo` to set `ar->what` to "Luau" instead of "Lua" when the closure is a Luau closure --- VM/src/ldebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VM/src/ldebug.cpp b/VM/src/ldebug.cpp index 44da57c2b..f6c89111c 100644 --- a/VM/src/ldebug.cpp +++ b/VM/src/ldebug.cpp @@ -121,7 +121,7 @@ static Closure* auxgetinfo(lua_State* L, const char* what, lua_Debug* ar, Closur { TString* source = f->l.p->source; ar->source = getstr(source); - ar->what = "Lua"; + ar->what = "Luau"; ar->linedefined = f->l.p->linedefined; ar->short_src = luaO_chunkid(ar->ssbuf, sizeof(ar->ssbuf), getstr(source), source->len); } From f3d3118132e324e4f699447ff3e45a84be7fa47b Mon Sep 17 00:00:00 2001 From: PhoenixWhitefire Date: Sat, 27 Sep 2025 15:42:26 +0530 Subject: [PATCH 2/2] Fix Conformance `getFirstLuauFrameDebugInfo` to check for "Luau" instead of "Lua" I checked for case-sensitive matches for "Lua" in quotes as well and got no other results --- tests/Conformance.test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Conformance.test.cpp b/tests/Conformance.test.cpp index 1675cdd2c..a363d08d4 100644 --- a/tests/Conformance.test.cpp +++ b/tests/Conformance.test.cpp @@ -2381,7 +2381,7 @@ TEST_CASE("IfElseExpression") // Optionally returns debug info for the first Luau stack frame that is encountered on the callstack. static std::optional getFirstLuauFrameDebugInfo(lua_State* L) { - static std::string_view kLua = "Lua"; + static std::string_view kLua = "Luau"; lua_Debug ar; for (int i = 0; lua_getinfo(L, i, "sl", &ar); i++) {