소스 검색

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

Co-authored-by: Chet Zema <[email protected]>
Chet Zema 2 년 전
부모
커밋
3cb05db092
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)