Operation could destabilize the runtime (SL)

Jul 26, 2012 at 1:26 PM
Edited Jul 26, 2012 at 1:27 PM

I've compiled the latest source code (2db8531adca3) and I'm trying to do the following in Silverlight;


public class TestClass
  public int Value{get;set;}

this.engine = new Jurassic.ScriptEngine() {
  EnableExposedClrTypes = true,

engine.SetGlobalValue("TestClass", typeof(TestClass));
engine.Execute("var instance = new TestClass()");
engine.Execute("instance.Value = 6");       // raises VerificationException
Console.WriteLine(engine.Evaluate("instance.Value")); // should print "6".


It raises a VerificationException (Operation could destabilize the runtime.) when setting the Value property in javascript.

Any clues?


Aug 17, 2012 at 11:26 PM

Almost a month gone by without a response. Is it safe to assume Jurassic is dead? That is a shame really, looked very promising.

- Koen

Aug 19, 2012 at 11:58 PM

Sorry, I've been putting all my spare time into a different project (www.lawspot.org.nz) and so haven't been able to work on Jurassic.  The functionality you are trying to get working is undocumented and incomplete and so it is not surprising that it has problems.  You can use the documented method of exposing properties instead - this should work fine in Silverlight.