This project has moved and is read-only. For the latest updates, please go here.

Disallowing CLR?

Jan 6, 2012 at 5: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!

Jan 7, 2012 at 12:58 PM
Edited Jan 7, 2012 at 1: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 6:18 PM

I'll give it a shot.

Thanks, Paul!