We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to use mockagne with Lua 5.3, the following error is thrown.
mockagne
mockagne.lua:145: attempt to call a nil value (global 'unpack')
Looking at the code unpack() is used a handful of times as global reference. In Lua 5.3 the unpack function was moved into table.
unpack()
unpack
table
Add the following for a backward-compatible fix:
local unpack = table.unpack or unpack
The text was updated successfully, but these errors were encountered:
#3: Lua 5.3 fix for unpack()
748129f
#3: Updated date to 2020. Seems I am living in the past.
98fdaa5
Merge pull request #4 from mockagne/bugfix/3-Lua_5.3_compatibiliy_wit…
7240622
…h_unpack #3: Lua 5.3 fix for unpack()
redcatbear
Successfully merging a pull request may close this issue.
Situation
When trying to use
mockagne
with Lua 5.3, the following error is thrown.Looking at the code
unpack()
is used a handful of times as global reference. In Lua 5.3 theunpack
function was moved intotable
.Steps to reproduce
Proposed fix
Add the following for a backward-compatible fix:
The text was updated successfully, but these errors were encountered: