I initialize my engine with the following lines:
```
Dim engine As JScriptEngine
engine = New JScriptEngine(WindowsScriptEngineFlags.EnableDebugging)
engine.AddHostType("Console", GetType(Console))
```
I add the following script to the engine:
```
function Test(param) {
Console.WriteLine("Called Test with param: " + param);
}
```
When I call
```
engine.Script.Test(20)
```
It prints: "Called Test with param: undefined"
Does JScriptEngine not support calling internal functions with parameters?
```
Dim engine As JScriptEngine
engine = New JScriptEngine(WindowsScriptEngineFlags.EnableDebugging)
engine.AddHostType("Console", GetType(Console))
```
I add the following script to the engine:
```
function Test(param) {
Console.WriteLine("Called Test with param: " + param);
}
```
When I call
```
engine.Script.Test(20)
```
It prints: "Called Test with param: undefined"
Does JScriptEngine not support calling internal functions with parameters?