Browse Source

FieldOffset fix to avoid TypeLoad exception in partial trust IIS level

Andrey Gruzdov 10 years ago
parent
commit
c344ee4874
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Jint/Native/JsValue.cs

+ 1 - 1
Jint/Native/JsValue.cs

@@ -85,7 +85,7 @@ namespace Jint.Native
         [FieldOffset(8)]
         private readonly ObjectInstance _object;
 
-        [FieldOffset(8)]
+        [FieldOffset(12)]
         private readonly string _string;
 
         [FieldOffset(16)]