Skip to content

Commit d5f5baa

Browse files
ClearScript 7.2: Added V8ScriptEngine.CancelAwaitDebugger (GitHub Issue ClearFoundry#309); added support for BigInt64Array and BigUint64Array; (V8) same-runtime engines get direct access to all shared objects (related to GitHub Issue ClearFoundry#308); (V8) typed arrays and data views based on SharedArrayBuffer can be shared across runtimes (GitHub Issue ClearFoundry#317); improved V8-to-host invocation performance; updated build and API documentation. Tested with V8 9.6.180.14.
1 parent 176b139 commit d5f5baa

File tree

692 files changed

+2945
-1540
lines changed

Some content is hidden

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

692 files changed

+2945
-1540
lines changed

ClearScript/Exports/VersionSymbols.h

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

66
#pragma once
77

8-
#define CLEARSCRIPT_VERSION_STRING "7.1.7"
9-
#define CLEARSCRIPT_VERSION_COMMA_SEPARATED 7,1,7
10-
#define CLEARSCRIPT_VERSION_STRING_INFORMATIONAL "7.1.7"
8+
#define CLEARSCRIPT_VERSION_STRING "7.2.0"
9+
#define CLEARSCRIPT_VERSION_COMMA_SEPARATED 7,2,0
10+
#define CLEARSCRIPT_VERSION_STRING_INFORMATIONAL "7.2.0"
1111
#define CLEARSCRIPT_FILE_FLAGS 0L

ClearScript/HostItem.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,11 +1641,13 @@ private object SetHostProperty(PropertyInfo property, BindingFlags invokeFlags,
16411641
}
16421642

16431643
var value = args[args.Length - 1];
1644-
if ((value != null) && Engine.GetType().IsGuidType<TypeGuidMocks.VBScriptEngine>())
1644+
1645+
// ReSharper disable once SuspiciousTypeConversion.Global
1646+
if ((value != null) && (Engine is IVBScriptEngineTag))
16451647
{
16461648
// special case to emulate VBScript's default property handling
16471649

1648-
if (value.GetType().IsGuidType<TypeGuidMocks.WindowsScriptItem>())
1650+
if (value is IWindowsScriptItemTag)
16491651
{
16501652
var defaultValue = ((IDynamic)value).GetProperty(SpecialMemberNames.Default);
16511653
if (!(defaultValue is Undefined))

ClearScript/JavaScript/ITypedArray.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ public interface ITypedArray : IArrayBufferView
5858
/// <term><c>ITypedArray&#x3C;int&#x3E;</c></term>
5959
/// </item>
6060
/// <item>
61+
/// <term><see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigUint64Array">BigUint64Array</see></term>
62+
/// <term><c>ITypedArray&#x3C;ulong&#x3E;</c></term>
63+
/// </item>
64+
/// <item>
65+
/// <term><see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt64Array">BigInt64Array</see></term>
66+
/// <term><c>ITypedArray&#x3C;long&#x3E;</c></term>
67+
/// </item>
68+
/// <item>
6169
/// <term><see href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array">Float32Array</see></term>
6270
/// <term><c>ITypedArray&#x3C;float&#x3E;</c></term>
6371
/// </item>

ClearScript/Properties/AssemblyInfo.Core.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
[assembly: InternalsVisibleTo("ClearScriptTest")]
1919

2020
[assembly: ComVisible(false)]
21-
[assembly: AssemblyVersion("7.1.7")]
22-
[assembly: AssemblyFileVersion("7.1.7")]
23-
[assembly: AssemblyInformationalVersion("7.1.7")]
21+
[assembly: AssemblyVersion("7.2.0")]
22+
[assembly: AssemblyFileVersion("7.2.0")]
23+
[assembly: AssemblyInformationalVersion("7.2.0")]
2424

2525
namespace Microsoft.ClearScript.Properties
2626
{
2727
internal static class ClearScriptVersion
2828
{
29-
public const string Triad = "7.1.7";
30-
public const string Informational = "7.1.7";
29+
public const string Triad = "7.2.0";
30+
public const string Informational = "7.2.0";
3131
}
3232
}

ClearScript/Properties/AssemblyInfo.V8.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
[assembly: InternalsVisibleTo("ClearScriptTest")]
1616

1717
[assembly: ComVisible(false)]
18-
[assembly: AssemblyVersion("7.1.7")]
19-
[assembly: AssemblyFileVersion("7.1.7")]
20-
[assembly: AssemblyInformationalVersion("7.1.7")]
18+
[assembly: AssemblyVersion("7.2.0")]
19+
[assembly: AssemblyFileVersion("7.2.0")]
20+
[assembly: AssemblyInformationalVersion("7.2.0")]

ClearScript/Properties/AssemblyInfo.Windows.Core.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
[assembly: InternalsVisibleTo("ClearScriptTest")]
1717

1818
[assembly: ComVisible(false)]
19-
[assembly: AssemblyVersion("7.1.7")]
20-
[assembly: AssemblyFileVersion("7.1.7")]
21-
[assembly: AssemblyInformationalVersion("7.1.7")]
19+
[assembly: AssemblyVersion("7.2.0")]
20+
[assembly: AssemblyFileVersion("7.2.0")]
21+
[assembly: AssemblyInformationalVersion("7.2.0")]

ClearScript/Properties/AssemblyInfo.Windows.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
[assembly: InternalsVisibleTo("ClearScriptTest")]
1616

1717
[assembly: ComVisible(false)]
18-
[assembly: AssemblyVersion("7.1.7")]
19-
[assembly: AssemblyFileVersion("7.1.7")]
20-
[assembly: AssemblyInformationalVersion("7.1.7")]
18+
[assembly: AssemblyVersion("7.2.0")]
19+
[assembly: AssemblyFileVersion("7.2.0")]
20+
[assembly: AssemblyInformationalVersion("7.2.0")]

ClearScript/Util/TypeGuidMocks.cs

Lines changed: 0 additions & 22 deletions
This file was deleted.

ClearScript/Util/TypeGuids.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

ClearScript/Util/TypeHelpers.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -328,21 +328,6 @@ public static bool IsCOMVisible(this Type type)
328328
return false;
329329
}
330330

331-
public static bool IsGuidType<T>(this Type type)
332-
{
333-
while (type != null)
334-
{
335-
if (type.GUID == typeof(T).GUID)
336-
{
337-
return true;
338-
}
339-
340-
type = type.BaseType;
341-
}
342-
343-
return false;
344-
}
345-
346331
public static string GetRootName(this Type type)
347332
{
348333
return StripGenericSuffix(type.Name);

0 commit comments

Comments
 (0)