Skip to content

Wrong emit on complex LuaTuple $dbg #6

Description

@Dionysusnu

Basing off of the example in the readme:

function test() {
	return 10;
}
const value = $dbg(test());
local function test() 
	return 10
end
local value = (function(value)
	print("[source.ts:4] test() =", value)
	return value
end)(test())

will be wrong if test returns a LuaTuple, only catching the first element of it. This should be easy to change, albeit with a performance hit, by using ...values.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions