We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1890840 commit 96fc10eCopy full SHA for 96fc10e
1 file changed
statemachine.lua
@@ -4,6 +4,9 @@ machine.__index = machine
4
local NONE = "none"
5
local ASYNC = "async"
6
7
+-- Compatibility for Lua 5.1 vs 5.2+
8
+local unpack = unpack or table.unpack
9
+
10
local function call_handler(handler, params)
11
if handler then
12
return handler(unpack(params))
0 commit comments