Przeglądaj źródła

Fixing ToPrimitive()

Sebastien Ros 12 lat temu
rodzic
commit
815c3dfa7c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Jint/Runtime/TypeConverter.cs

+ 1 - 1
Jint/Runtime/TypeConverter.cs

@@ -29,7 +29,7 @@ namespace Jint.Runtime
 
             if (o == null)
             {
-                throw new ArgumentException();
+                return input;
             }
 
             return o.DefaultValue(preferredType);