Skip to content

minifier issue #162

@liverfail

Description

@liverfail

What is the issue you are experiencing?

ok so basically if i do

local print = print
pcall(print,'hello world')

and i minify this it becomes like
local a = print;pcall(print,'hello world')

instead of
local print=print;pcall(print,'hello world')
or
local a=print;pcall(a,'hello world')

as it would with any other minifier please fix this thanks

What was the expected result?

local print=print;pcall(print,'hello world')
or
local a=print;pcall(a,'hello world')

What was the actual result?

local a = print;pcall(print,'hello world')

What are the steps to reproduce this issue?

i think i explained it well enough

What version of Loretta are you experiencing this issue in?

0.2.13

What Lua versions are affected by this issue?

prob all of them

Is there any additional information you wish to add?

No response

Please ensure you have done the following actions:

  • I have checked that there are no similar issues already open.
  • I confirm this is not an usage question but an actual bug within Loretta.
  • I have confirmed that this issue still happens on the latest nightly version.
  • I have confirmed that this issue is because of Loretta and not because of my own code.
  • I acknowledge my issue will be closed if any step has been skipped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions