Skip to content

[BUG] Parenthesis-enclosed expressions aren't truncated to 1 value #154

@9382

Description

@9382

Describe the bug
The obfuscator doesn't support truncating the output of a function or ... using parenthesis (())

Expected behavior
The amount of values to be truncated (or raised with a nil in the case of no output) to 1 argument - See lua 5.1 documentation §2.5

To Reproduce
Here's a function which displays this behaviour - the output will be different between the obfuscated script and the original code

local function x()
	return 3, 4, 5
end
print("Expecting '3, 4, 5' and then just '3'")
print(x())
print((x()))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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