Closed UweKeim closed 2 weeks ago
Update: I've just discovered that JScript also understands if I do not use the OptionalAttribute
and use the = null
syntax instead.
So I'm simply changing all my .NET methods that are accessible from within the scripts to use the = null
syntax and it seems to work with both Jint and JScript.
I'm closing this now, I hope some day someone finds my posting here and it might help then.
Currently I'm evaluating whether to move from Windows Active Scripting (with JScript) to Jint.
This class runs successfully when accessed from a JScript script:
E.g. within a script like:
When running it with Jint like this:
It gives an exception:
To fix this, I have to change the code to:
This runs successfully with Jint.
My question
Is it possible (and reasonable) that you add support for the
OptionalAttribute
attribute?