Skip to content

Update lua_getinfo/auxgetinfo to set lua_Debug::what to "Luau" instead of "Lua" when it's a Luau closure#2023

Open
PhoenixWhitefire wants to merge 11 commits intoluau-lang:masterfrom
PhoenixWhitefire:getinfo-luau-instead-of-lua
Open

Update lua_getinfo/auxgetinfo to set lua_Debug::what to "Luau" instead of "Lua" when it's a Luau closure#2023
PhoenixWhitefire wants to merge 11 commits intoluau-lang:masterfrom
PhoenixWhitefire:getinfo-luau-instead-of-lua

Conversation

@PhoenixWhitefire
Copy link
Copy Markdown
Contributor

@PhoenixWhitefire PhoenixWhitefire commented Sep 27, 2025

I noticed this while prototyping a debugger. I would think it's one of the few places where the VM might still outwardly report the language as "Lua" instead of "Luau", maybe the last one.

Passed Luau.UnitTest and Luau.Conformance (with -O2, --codegen -O2 and --flags=true) locally

The "what" of lua_Debug is not reported to Scripts through debug.info so I assume that there aren't any backwards-compatibility issues

Adds flag LuauActivationRecordStopDeadnaming

…ead of "Lua"

I checked for case-sensitive matches for "Lua" in quotes as well and got no other results
@aatxe aatxe requested a review from vegorov-rbx October 27, 2025 01:58
@PhoenixWhitefire
Copy link
Copy Markdown
Contributor Author

Added flag LuauActivationRecordStopDeadnaming

I only made this PR because I noticed this in my debugger attempts

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant