Skip to content

Commit 233dcc8

Browse files
Context.Wrap & Context.Call pass the args
1 parent d29a591 commit 233dcc8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ModUtil.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -2134,8 +2134,9 @@ end )
21342134
ModUtil.Context.Call = ModUtil.Context(
21352135
function( info )
21362136
info.env = setmetatable( { }, { __index = info.penv } )
2137+
return table.unpack( info.args )
21372138
end,
2138-
function ( info )
2139+
function( info )
21392140
local thread = coroutine.running( )
21402141
local penv = threadEnvironments[ thread ]
21412142
threadEnvironments[ thread ] = info.env
@@ -2154,7 +2155,7 @@ ModUtil.Context.Wrap.Static = ModUtil.Context(
21542155
function( info )
21552156
info.env = setmetatable( { }, { __index = info.penv } )
21562157
end,
2157-
function ( info )
2158+
function( info )
21582159
return ModUtil.Wrap( info.arg, function( base, ... )
21592160
local thread = coroutine.running( )
21602161
local penv = threadEnvironments[ thread ]

0 commit comments

Comments
 (0)