Browse Source

Comment from Sebatien

Frederic Torres 11 years ago
parent
commit
e9168c2788
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jint/Native/Json/JsonSerializer.cs

+ 1 - 1
Jint/Native/Json/JsonSerializer.cs

@@ -147,7 +147,7 @@ namespace Jint.Native.Json
                         value = SerializeArray(value.As<ArrayInstance>());
                         value = SerializeArray(value.As<ArrayInstance>());
                         return value;
                         return value;
                     case "Object":
                     case "Object":
-                        value = SerializeObject(value.ToObject() as ObjectInstance);
+                        value = SerializeObject(value.AsObject());
                         return value;
                         return value;
                 }
                 }
             }
             }