Parcourir la source

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

Co-authored-by: Chet Zema <[email protected]>
Chet Zema il y a 2 ans
Parent
commit
3cb05db092
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)