Disallowing CLR?

Jan 6, 2012 at 4:48 PM

I'm searched the keyword "CLR" both on discussions and on the Wiki and haven't come up with anything.

I'm looking for something similar to Jint's "AllowClr()" function. 

Thanks!

Coordinator
Jan 7, 2012 at 11:58 AM
Edited Jan 7, 2012 at 12:02 PM

There is nothing analogous to AllowClr() in the current release (v2.1), sorry.  However, I have almost finished implementing something similar - it's in the latest source code revision if you want to give it a try.  See Unit Tests > Core > ScriptEngineTests.cs > SetGlobalValueClassType/SetGlobalValueClassInstance for usage examples.

Feb 15, 2012 at 5:18 PM

I'll give it a shot.

Thanks, Paul!