Browse Source

Fixing ToPrimitive()

Sebastien Ros 12 years ago
parent
commit
815c3dfa7c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jint/Runtime/TypeConverter.cs

+ 1 - 1
Jint/Runtime/TypeConverter.cs

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