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

Operation could destabilize the runtime (SL)

Jul 26, 2012 at 2:26 PM
Edited Jul 26, 2012 at 2: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 18, 2012 at 12:26 AM

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 20, 2012 at 12:58 AM

Sorry, I've been putting all my spare time into a different project ( 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.