Skip to content

Commit 3b7e163

Browse files
committed
Fixed bug in WrapInFunctions
1 parent 230d102 commit 3b7e163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prometheus/steps/WrapInFunction.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function WrapInFunction:apply(ast)
3636

3737
ast.body = Ast.Block({
3838
Ast.ReturnStatement({
39-
Ast.FunctionCallExpression(Ast.FunctionLiteralExpression({}, body),{})
39+
Ast.FunctionCallExpression(Ast.FunctionLiteralExpression({Ast.VarargExpression()}, body), {Ast.VarargExpression()})
4040
});
4141
}, scope);
4242
end

0 commit comments

Comments
 (0)