Skip to content

Commit b461294

Browse files
committed
In JavaScriptEngineSwitcher.V8 in configuration settings of the V8 JS engine was changed types of MaxHeapSize and MaxStackUsage properties from ulong to UIntPtr
1 parent 47cca0d commit b461294

File tree

4 files changed

+9
-17
lines changed

4 files changed

+9
-17
lines changed

NuGet/JavaScriptEngineSwitcher.V8/JavaScriptEngineSwitcher.V8.nuspec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ This package does not contain the native ClearScript and V8 assemblies. Therefor
1717
* JavaScriptEngineSwitcher.V8.Native.win-x86
1818
* JavaScriptEngineSwitcher.V8.Native.win-x64</description>
1919
<summary>JavaScriptEngineSwitcher.V8 contains adapter `V8JsEngine` (wrapper for the Microsoft ClearScript.V8 version 5.5.0).</summary>
20-
<releaseNotes>1. Microsoft ClearScript.V8 was updated to version 5.5.0 (support of V8 version 6.2.414.40);
21-
2. Now requires .NET Framework 4.5 or greater;
22-
3. In configuration settings of the V8 JS engine became obsolete the `MaxExecutableSize` property and was added 4 new properties: `EnableRemoteDebugging` (default `false`), `HeapSizeSampleInterval` (default `TimeSpan.Zero`), `MaxHeapSize` (default `0`) and `MaxStackUsage` (default `0`).</releaseNotes>
20+
<releaseNotes>In configuration settings of the V8 JS engine was changed types of `MaxHeapSize` and `MaxStackUsage` properties from `ulong` to `UIntPtr`.</releaseNotes>
2321
<copyright>Copyright (c) 2013-2017 Andrey Taritsyn - http://www.taritsyn.ru</copyright>
2422
<language>en-US</language>
2523
<tags>JavaScriptEngineSwitcher JavaScript ECMAScript V8 ClearScript</tags>

NuGet/JavaScriptEngineSwitcher.V8/readme.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,8 @@
2525
=============
2626
RELEASE NOTES
2727
=============
28-
1. Microsoft ClearScript.V8 was updated to version 5.5.0 (support of V8 version
29-
6.2.414.40);
30-
2. Now requires .NET Framework 4.5 or greater;
31-
3. In configuration settings of the V8 JS engine became obsolete the
32-
`MaxExecutableSize` property and was added 4 new properties:
33-
`EnableRemoteDebugging` (default `false`), `HeapSizeSampleInterval` (default
34-
`TimeSpan.Zero`), `MaxHeapSize` (default `0`) and `MaxStackUsage` (default
35-
`0`).
28+
In configuration settings of the V8 JS engine was changed types of `MaxHeapSize`
29+
and `MaxStackUsage` properties from `ulong` to `UIntPtr`.
3630

3731
=============
3832
DOCUMENTATION

src/JavaScriptEngineSwitcher.V8/V8JsEngine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ public V8JsEngine(V8Settings settings)
9797
try
9898
{
9999
_jsEngine = new V8ScriptEngine(constraints, flags, debugPort);
100-
_jsEngine.MaxRuntimeHeapSize = new UIntPtr(v8Settings.MaxHeapSize);
100+
_jsEngine.MaxRuntimeHeapSize = v8Settings.MaxHeapSize;
101101
_jsEngine.RuntimeHeapSizeSampleInterval = v8Settings.HeapSizeSampleInterval;
102-
_jsEngine.MaxRuntimeStackUsage = new UIntPtr(v8Settings.MaxStackUsage);
102+
_jsEngine.MaxRuntimeStackUsage = v8Settings.MaxStackUsage;
103103
}
104104
catch (Exception e)
105105
{

src/JavaScriptEngineSwitcher.V8/V8Settings.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public int MaxExecutableSize
9292
/// an exception.
9393
/// </para>
9494
/// </remarks>
95-
public ulong MaxHeapSize
95+
public UIntPtr MaxHeapSize
9696
{
9797
get;
9898
set;
@@ -131,7 +131,7 @@ public int MaxOldSpaceSize
131131
/// Monitoring is resumed when control returns to the runtime.
132132
/// </para>
133133
/// </remarks>
134-
public ulong MaxStackUsage
134+
public UIntPtr MaxStackUsage
135135
{
136136
get;
137137
set;
@@ -148,10 +148,10 @@ public V8Settings()
148148
DebugPort = 9222;
149149
DisableGlobalMembers = false;
150150
HeapSizeSampleInterval = TimeSpan.Zero;
151-
MaxHeapSize = 0;
151+
MaxHeapSize = UIntPtr.Zero;
152152
MaxNewSpaceSize = 0;
153153
MaxOldSpaceSize = 0;
154-
MaxStackUsage = 0;
154+
MaxStackUsage = UIntPtr.Zero;
155155
}
156156
}
157157
}

0 commit comments

Comments
 (0)