Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken setlist with or (and) construct #18

Open
toxamin opened this issue Oct 13, 2023 · 0 comments
Open

Broken setlist with or (and) construct #18

toxamin opened this issue Oct 13, 2023 · 0 comments

Comments

@toxamin
Copy link
Contributor

toxamin commented Oct 13, 2023

When given the following script:

local t = cond or {255, 255, 255, 255}
print(t[1])

Metaworm's luadec produces the following output:

local r0_0 = cond
if not r0_0 then
  r0_0 = {}
  local r1_0 = 255
  local r2_0 = 255
  local r3_0 = 255
  local r4_0 = 255
  -- setlist for #0 failed
end
print(r0_0[1])
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

No branches or pull requests

1 participant