Skip to content

Commit 5498737

Browse files
committed
Changed a sorting of properties of the DllImport attribute
1 parent cb484ad commit 5498737

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/MsieJavaScriptEngine/JsRt/Edge/EdgeNativeMethods.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ internal static extern JsErrorCode JsSetRuntimeMemoryAllocationCallback(EdgeJsRu
8181
internal static extern JsErrorCode JsSetRuntimeBeforeCollectCallback(EdgeJsRuntime runtime,
8282
IntPtr callbackState, JsBeforeCollectCallback beforeCollectCallback);
8383

84-
[DllImport(DllName.Chakra, CallingConvention = DefaultCallingConvention, EntryPoint = "JsAddRef")]
84+
[DllImport(DllName.Chakra, EntryPoint = "JsAddRef", CallingConvention = DefaultCallingConvention)]
8585
internal static extern JsErrorCode JsContextAddRef(EdgeJsContext reference, out uint count);
8686

8787
[DllImport(DllName.Chakra, CallingConvention = DefaultCallingConvention)]
8888
internal static extern JsErrorCode JsAddRef(EdgeJsValue reference, out uint count);
8989

90-
[DllImport(DllName.Chakra, CallingConvention = DefaultCallingConvention, EntryPoint = "JsRelease")]
90+
[DllImport(DllName.Chakra, EntryPoint = "JsRelease", CallingConvention = DefaultCallingConvention)]
9191
internal static extern JsErrorCode JsContextRelease(EdgeJsContext reference, out uint count);
9292

9393
[DllImport(DllName.Chakra, CallingConvention = DefaultCallingConvention)]

src/MsieJavaScriptEngine/JsRt/Ie/IeNativeMethods.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,13 @@ internal static extern JsErrorCode JsSetRuntimeMemoryAllocationCallback(IeJsRunt
8282
internal static extern JsErrorCode JsSetRuntimeBeforeCollectCallback(IeJsRuntime runtime,
8383
IntPtr callbackState, JsBeforeCollectCallback beforeCollectCallback);
8484

85-
[DllImport(DllName.JScript9, CallingConvention = DefaultCallingConvention, EntryPoint = "JsAddRef")]
85+
[DllImport(DllName.JScript9, EntryPoint = "JsAddRef", CallingConvention = DefaultCallingConvention)]
8686
internal static extern JsErrorCode JsContextAddRef(IeJsContext reference, out uint count);
8787

8888
[DllImport(DllName.JScript9, CallingConvention = DefaultCallingConvention)]
8989
internal static extern JsErrorCode JsAddRef(IeJsValue reference, out uint count);
9090

91-
[DllImport(DllName.JScript9, CallingConvention = DefaultCallingConvention, EntryPoint = "JsRelease")]
91+
[DllImport(DllName.JScript9, EntryPoint = "JsRelease", CallingConvention = DefaultCallingConvention)]
9292
internal static extern JsErrorCode JsContextRelease(IeJsContext reference, out uint count);
9393

9494
[DllImport(DllName.JScript9, CallingConvention = DefaultCallingConvention)]

0 commit comments

Comments
 (0)