Explorar o código

disable explicit struct layout

Andrey Gruzdov %!s(int64=10) %!d(string=hai) anos
pai
achega
ff910f1777
Modificáronse 1 ficheiros con 0 adicións e 6 borrados
  1. 0 6
      Jint/Native/JsValue.cs

+ 0 - 6
Jint/Native/JsValue.cs

@@ -18,7 +18,6 @@ using System.Runtime.InteropServices;
 
 namespace Jint.Native
 {
-    [StructLayout(LayoutKind.Explicit)]
     [DebuggerTypeProxy(typeof(JsValueDebugView))]
     public struct JsValue : IEquatable<JsValue>
     {
@@ -76,19 +75,14 @@ namespace Jint.Native
             _type = type;
         }
 
-        [FieldOffset(0)]
         private readonly bool _bool;
 
-        [FieldOffset(0)]
         private readonly double _double;
 
-        [FieldOffset(8)]
         private readonly ObjectInstance _object;
 
-        [FieldOffset(12)]
         private readonly string _string;
 
-        [FieldOffset(16)]
         private readonly Types _type;
 
         [Pure]