Skip to content

Commit afdb641

Browse files
committed
Fixed a minor errors
1 parent 73b6cf3 commit afdb641

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/MsieJavaScriptEngine/JsRt/Edge/EdgeJsContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ public static EdgeJsValue RunSerializedScript(string script, byte[] buffer, JsSo
304304
public static byte[] SerializeScript(string script)
305305
{
306306
byte[] buffer = null;
307-
ulong bufferSize = 0;
307+
uint bufferSize = 0;
308308

309309
JsErrorCode errorCode = EdgeNativeMethods.JsSerializeScript(script, buffer, ref bufferSize);
310310
EdgeJsErrorHelpers.ThrowIfError(errorCode);

src/MsieJavaScriptEngine/JsRt/Edge/EdgeNativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ internal static extern JsErrorCode JsRunScript(string script, JsSourceContext so
2121
string sourceUrl, out EdgeJsValue result);
2222

2323
[DllImport(DllName.Chakra, CharSet = CharSet.Unicode)]
24-
internal static extern JsErrorCode JsSerializeScript(string script, byte[] buffer, ref ulong bufferSize);
24+
internal static extern JsErrorCode JsSerializeScript(string script, byte[] buffer, ref uint bufferSize);
2525

2626
[DllImport(DllName.Chakra, CharSet = CharSet.Unicode)]
2727
internal static extern JsErrorCode JsParseSerializedScript(string script, byte[] buffer,

src/MsieJavaScriptEngine/JsRt/Ie/IeJsContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public static IeJsValue RunSerializedScript(string script, byte[] buffer, JsSour
307307
public static byte[] SerializeScript(string script)
308308
{
309309
byte[] buffer = null;
310-
ulong bufferSize = 0;
310+
uint bufferSize = 0;
311311

312312
JsErrorCode errorCode = IeNativeMethods.JsSerializeScript(script, buffer, ref bufferSize);
313313
IeJsErrorHelpers.ThrowIfError(errorCode);

src/MsieJavaScriptEngine/JsRt/Ie/IeNativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal static extern JsErrorCode JsRunScript(string script, JsSourceContext so
2222
string sourceUrl, out IeJsValue result);
2323

2424
[DllImport(DllName.JScript9, CharSet = CharSet.Unicode)]
25-
internal static extern JsErrorCode JsSerializeScript(string script, byte[] buffer, ref ulong bufferSize);
25+
internal static extern JsErrorCode JsSerializeScript(string script, byte[] buffer, ref uint bufferSize);
2626

2727
[DllImport(DllName.JScript9, CharSet = CharSet.Unicode)]
2828
internal static extern JsErrorCode JsParseSerializedScript(string script, byte[] buffer,

0 commit comments

Comments
 (0)