Explorar o código

Engine.SetValue accepts a nullable object. (#1458)

Co-authored-by: Chet Zema <[email protected]>
Chet Zema %!s(int64=2) %!d(string=hai) anos
pai
achega
3cb05db092
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Jint/Engine.cs

+ 1 - 1
Jint/Engine.cs

@@ -212,7 +212,7 @@ namespace Jint
             return this;
         }
 
-        public Engine SetValue(string name, object obj)
+        public Engine SetValue(string name, object? obj)
         {
             var value = obj is Type t
                 ? TypeReference.CreateTypeReference(this, t)