Actually pass script reference if requested
This commit is contained in:
parent
1243492453
commit
81a6b05b26
|
@ -37,6 +37,8 @@ namespace Upsilon.BaseTypes.ScriptFunction
|
|||
$"and parameter types: {string.Join(", ", types.Select(x => $"'{x.Name}'"))}");
|
||||
}
|
||||
var objects = new List<object>();
|
||||
if (_passScriptReference)
|
||||
objects.Add(script);
|
||||
objects.AddRange(_directTypeManipulation
|
||||
? variables.Select(x => (object) x).ToList()
|
||||
: variables.Select(x => x.ToCSharpObject()).ToList());
|
||||
|
|
Loading…
Reference in New Issue