Skip to content

Wrong emit on complex LuaTuple $dbg #6

@Dionysusnu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions