add polyfill for table.pack and table.unpack
This commit is contained in:
parent
30ccde896d
commit
6d36f2684a
|
@ -19,3 +19,6 @@ package.path = DATADIR .. '/?.lua;' .. package.path
|
|||
package.path = DATADIR .. '/?/init.lua;' .. package.path
|
||||
package.path = USERDIR .. '/?.lua;' .. package.path
|
||||
package.path = USERDIR .. '/?/init.lua;' .. package.path
|
||||
|
||||
table.pack = table.pack or pack or function(...) return {...} end
|
||||
table.unpack = table.unpack or unpack
|
||||
|
|
Loading…
Reference in New Issue