love2d / love

LÖVE is an awesome 2D game framework for Lua.
https://love2d.org
Other
5.2k stars 404 forks source link

Incorrect error message #1808

Closed JustMog closed 2 years ago

JustMog commented 2 years ago

In the following situation the error message gives the wrong variable as being a table:

local a = {}
local b = 1
print(1 + (a or b))
-- attempt to perform arithmetic on local 'b' (a table value)
pakeke-constructor commented 2 years ago

This is a bug with luaJIT, not love2d. I don't think there is much that can be done about it here :/