Browse Source

Merge pull request #47 from fredericaltorres/master

Add iOS Support
Sébastien Ros 11 years ago
parent
commit
3a2c1fb4e8
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Jint/Native/JsValue.cs

+ 6 - 1
Jint/Native/JsValue.cs

@@ -489,7 +489,12 @@ namespace Jint.Native
                             break;
 
                         case "Object":
-                            IDictionary<string, object> o = new ExpandoObject();
+                            #if __IOS__
+                                IDictionary<string, object> o = new Dictionary<string, object>(); 
+                            #else
+                                IDictionary<string, object> o = new ExpandoObject();
+                            #endif
+                            
                             foreach (var p in _object.Properties)
                             {
                                 if (!p.Value.Enumerable.HasValue || p.Value.Enumerable.Value == false)