⚡ Sangsakala Proxy 🏠 Home
Skip to content

Commit df0ce74

Browse files
Version 7.5.1.1: [V8] Patched in v8::Isolate::ResetStackLimit to fix GitHub Issue #718; [V8] added V8Settings.DefaultStackSize (GitHub Issue #726); [V8] added V8ScriptEngine.PromiseHook (GitHub Issue #715); [V8] added V8ScriptEngine.PromiseRejectionCallback; updated API documentation. Tested with V8 14.7.173.23.
1 parent 6d4abd6 commit df0ce74

1,087 files changed

Lines changed: 2436 additions & 1289 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎ClearScript/Exports/VersionSymbols.h‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33

44

55

6+
67
#pragma once
78

8-
#define CLEARSCRIPT_VERSION_STRING "7.5.1"
9-
#define CLEARSCRIPT_VERSION_COMMA_SEPARATED 7,5,1
10-
#define CLEARSCRIPT_VERSION_STRING_INFORMATIONAL "7.5.1"
9+
#define CLEARSCRIPT_VERSION_STRING "7.5.1.1"
10+
#define CLEARSCRIPT_VERSION_COMMA_SEPARATED 7,5,1,1
11+
#define CLEARSCRIPT_VERSION_STRING_INFORMATIONAL "7.5.1.1"
1112
#define CLEARSCRIPT_FILE_FLAGS 0L

‎ClearScript/Exports/VersionSymbols.tt‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#pragma once
99

10-
#define CLEARSCRIPT_VERSION_STRING "<#= version.ToString(3) #>"
11-
#define CLEARSCRIPT_VERSION_COMMA_SEPARATED <#= version.Major #>,<#= version.Minor #>,<#= version.Build #>
12-
#define CLEARSCRIPT_VERSION_STRING_INFORMATIONAL "<#= version.ToString(3) + versionSuffix #>"
13-
#define CLEARSCRIPT_FILE_FLAGS <#= string.IsNullOrEmpty(versionSuffix) ? "0L" : "VS_FF_PRERELEASE" #>
10+
#define CLEARSCRIPT_VERSION_STRING "<#= versionInfo.Normal #>"
11+
#define CLEARSCRIPT_VERSION_COMMA_SEPARATED <#= versionInfo.CommaSeparated #>
12+
#define CLEARSCRIPT_VERSION_STRING_INFORMATIONAL "<#= versionInfo.Informational #>"
13+
#define CLEARSCRIPT_FILE_FLAGS <#= string.IsNullOrEmpty(versionInfo.Suffix) ? "0L" : "VS_FF_PRERELEASE" #>

‎ClearScript/HostFunctions.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ public bool isNull(object value)
651651
public T flags<T>(params T[] args)
652652
{
653653
var type = typeof(T);
654-
if (!type.IsFlagsEnum(ScriptEngine.Current))
654+
if (!type.IsFlagsEnum(GetEngine()))
655655
{
656656
throw new InvalidOperationException(MiscHelpers.FormatInvariant("{0} is not a flag set type", type.GetFullFriendlyName()));
657657
}
@@ -1338,7 +1338,7 @@ public bool tryCatch(object tryFunc, object catchFunc, object finallyFunc = null
13381338

13391339
internal ScriptEngine GetEngine()
13401340
{
1341-
var activeEngine = ScriptEngine.Current ?? engine;
1341+
var activeEngine = engine ?? ScriptEngine.Current;
13421342
if (activeEngine is null)
13431343
{
13441344
throw new InvalidOperationException("Operation requires a script engine");

‎ClearScript/HostItem.InvokeMethod.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ private MethodBindResult(Func<Exception> exceptionFactory)
470470
public static MethodBindResult Create(string name, BindingFlags bindFlags, object rawResult, HostTarget hostTarget, object[] args)
471471
{
472472
var method = rawResult as MethodInfo;
473-
if (method != null)
473+
if (method is not null)
474474
{
475475
if (method.IsStatic && !bindFlags.HasAllFlags(BindingFlags.Static))
476476
{
@@ -485,7 +485,7 @@ public static MethodBindResult Create(string name, BindingFlags bindFlags, objec
485485

486486
public static MethodBindResult CreateFailure(Func<Exception> exceptionFactory) => new(exceptionFactory);
487487

488-
public bool IsSuccess => method != null;
488+
public bool IsSuccess => method is not null;
489489

490490
public object RawResult => IsSuccess ? method : exceptionFactory;
491491

‎ClearScript/JavaScript/JavaScriptObjectFlags.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public enum JavaScriptObjectFlags
4545
/// Indicates that the object is a
4646
/// <see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">promise</see>
4747
/// that is not yet settled. If the object is a promise and this attribute is not present,
48-
/// then the promise is fulfilled unless <c><see cref="Rejected"/></c> is present.
48+
/// then the promise is resolved unless <c><see cref="Rejected"/></c> is present.
4949
/// </summary>
5050
Pending = 0x00000008,
5151

‎ClearScript/Properties/AssemblyInfo.Core.cs‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66

77

8+
89
using System.Reflection;
910
using System.Runtime.CompilerServices;
1011
using System.Runtime.InteropServices;
@@ -18,15 +19,15 @@
1819
[assembly: InternalsVisibleTo("ClearScriptTest")]
1920

2021
[assembly: ComVisible(false)]
21-
[assembly: AssemblyVersion("7.5.1")]
22-
[assembly: AssemblyFileVersion("7.5.1")]
23-
[assembly: AssemblyInformationalVersion("7.5.1")]
22+
[assembly: AssemblyVersion("7.5.1.1")]
23+
[assembly: AssemblyFileVersion("7.5.1.1")]
24+
[assembly: AssemblyInformationalVersion("7.5.1.1")]
2425

2526
namespace Microsoft.ClearScript.Properties
2627
{
2728
internal static class ClearScriptVersion
2829
{
29-
public const string Triad = "7.5.1";
30-
public const string Informational = "7.5.1";
30+
public const string Normal = "7.5.1.1";
31+
public const string Informational = "7.5.1.1";
3132
}
3233
}

‎ClearScript/Properties/AssemblyInfo.Core.tt‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ using System.Runtime.InteropServices;
4343
[assembly: InternalsVisibleTo("<#= "ClearScriptTest" + publicKeySpec #>")]
4444

4545
[assembly: ComVisible(false)]
46-
[assembly: AssemblyVersion("<#= version.ToString(3) #>")]
47-
[assembly: AssemblyFileVersion("<#= version.ToString(3) #>")]
48-
[assembly: AssemblyInformationalVersion("<#= version.ToString(3) + versionSuffix #>")]
46+
[assembly: AssemblyVersion("<#= versionInfo.Normal #>")]
47+
[assembly: AssemblyFileVersion("<#= versionInfo.Normal #>")]
48+
[assembly: AssemblyInformationalVersion("<#= versionInfo.Informational #>")]
4949

5050
namespace Microsoft.ClearScript.Properties
5151
{
5252
internal static class ClearScriptVersion
5353
{
54-
public const string Triad = "<#= version.ToString(3) #>";
55-
public const string Informational = "<#= version.ToString(3) + versionSuffix #>";
54+
public const string Normal = "<#= versionInfo.Normal #>";
55+
public const string Informational = "<#= versionInfo.Informational #>";
5656
}
5757
}

‎ClearScript/Properties/AssemblyInfo.V8.ICUData.cs‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66

77

8+
89
using System.Reflection;
910
using System.Runtime.CompilerServices;
1011
using System.Runtime.InteropServices;
@@ -15,6 +16,6 @@
1516
[assembly: InternalsVisibleTo("ClearScript.V8")]
1617

1718
[assembly: ComVisible(false)]
18-
[assembly: AssemblyVersion("7.5.1")]
19-
[assembly: AssemblyFileVersion("7.5.1")]
20-
[assembly: AssemblyInformationalVersion("7.5.1")]
19+
[assembly: AssemblyVersion("7.5.1.1")]
20+
[assembly: AssemblyFileVersion("7.5.1.1")]
21+
[assembly: AssemblyInformationalVersion("7.5.1.1")]

‎ClearScript/Properties/AssemblyInfo.V8.ICUData.tt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ using System.Runtime.InteropServices;
4040
[assembly: InternalsVisibleTo("<#= "ClearScript.V8" + publicKeySpec #>")]
4141

4242
[assembly: ComVisible(false)]
43-
[assembly: AssemblyVersion("<#= version.ToString(3) #>")]
44-
[assembly: AssemblyFileVersion("<#= version.ToString(3) #>")]
45-
[assembly: AssemblyInformationalVersion("<#= version.ToString(3) + versionSuffix #>")]
43+
[assembly: AssemblyVersion("<#= versionInfo.Normal #>")]
44+
[assembly: AssemblyFileVersion("<#= versionInfo.Normal #>")]
45+
[assembly: AssemblyInformationalVersion("<#= versionInfo.Informational #>")]

‎ClearScript/Properties/AssemblyInfo.V8.cs‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66

77

8+
89
using System.Reflection;
910
using System.Runtime.CompilerServices;
1011
using System.Runtime.InteropServices;
@@ -15,6 +16,6 @@
1516
[assembly: InternalsVisibleTo("ClearScriptTest")]
1617

1718
[assembly: ComVisible(false)]
18-
[assembly: AssemblyVersion("7.5.1")]
19-
[assembly: AssemblyFileVersion("7.5.1")]
20-
[assembly: AssemblyInformationalVersion("7.5.1")]
19+
[assembly: AssemblyVersion("7.5.1.1")]
20+
[assembly: AssemblyFileVersion("7.5.1.1")]
21+
[assembly: AssemblyInformationalVersion("7.5.1.1")]

0 commit comments

Comments
 (0)