I think there's something strange at the top of the "SetGlobalValue" method.
https://github.com/paulbartrum/jurassic/blob/master/Jurassic/Core/ScriptEngine.cs#L944
I wish to pass either null (CLR) or Null (Jurassic) for a global variable, but it seems that both are throwing a (different) exception.
If I pass null (CLR), the method throws an ArgumentNullException.
If I pass Jurassic.Null.Value, the method fails because it considers the value as a CLR-object (not supported).
I believe that the contract exception for the CLR-null is wrong: by removing it, it seems working fine.
Thanks in advance.
I think there's something strange at the top of the "SetGlobalValue" method. https://github.com/paulbartrum/jurassic/blob/master/Jurassic/Core/ScriptEngine.cs#L944 I wish to pass either null (CLR) or Null (Jurassic) for a global variable, but it seems that both are throwing a (different) exception. If I pass null (CLR), the method throws an ArgumentNullException. If I pass Jurassic.Null.Value, the method fails because it considers the value as a CLR-object (not supported). I believe that the contract exception for the CLR-null is wrong: by removing it, it seems working fine. Thanks in advance.