Support ScriptBoolean returns from bound C# functions
This commit is contained in:
parent
898cabb237
commit
20dfcf6ec6
|
@ -128,6 +128,8 @@ namespace Upsilon.BaseTypes
|
|||
|
||||
if (t == typeof(ScriptString))
|
||||
return Type.String;
|
||||
if (t == typeof(ScriptBoolean))
|
||||
return Type.Boolean;
|
||||
if (typeof(ScriptNumber).IsAssignableFrom(t))
|
||||
return Type.Number;
|
||||
if (typeof(ScriptFunction.ScriptFunction).IsAssignableFrom(t))
|
||||
|
|
Loading…
Reference in New Issue