Browse Source

Adjust Engine.SetValue(string, string?) to accept null value. (#1559)

Chet Zema 2 years ago
parent
commit
d4f73ae446
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jint/Engine.cs

+ 1 - 1
Jint/Engine.cs

@@ -201,7 +201,7 @@ namespace Jint
         /// <summary>
         /// Registers a string value as variable.
         /// </summary>
-        public Engine SetValue(string name, string value)
+        public Engine SetValue(string name, string? value)
         {
             return SetValue(name, value is null ? JsValue.Null : JsString.Create(value));
         }