Skip to content

Commit 193644d

Browse files
committed
In JavaScriptEngineSwitcher.Jint added support of Jint version 3.0.0 Beta 2047
1 parent ed35b17 commit 193644d

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "7.0.103"
3+
"version": "7.0.200"
44
}
55
}

src/JavaScriptEngineSwitcher.Jint/JavaScriptEngineSwitcher.Jint.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@
1818
<Import Project="../../build/nuget-for-dotnet-lib.props" />
1919

2020
<PropertyGroup>
21-
<Description>JavaScriptEngineSwitcher.Jint contains adapter `JintJsEngine` (wrapper for the Jint JavaScript Engine (http://github.com/sebastienros/jint) version 3.0.0 Beta 2046).</Description>
21+
<Description>JavaScriptEngineSwitcher.Jint contains adapter `JintJsEngine` (wrapper for the Jint JavaScript Engine (http://github.com/sebastienros/jint) version 3.0.0 Beta 2047).</Description>
2222
<PackageTags>$(PackageCommonTags);Jint</PackageTags>
2323
<PackageIconFullPath>../../Icons/JavaScriptEngineSwitcher_Jint_Logo128x128.png</PackageIconFullPath>
24-
<PackageReleaseNotes>In configuration settings of the Jint JS engine was added one new property - `AllowReflection` (default `false`).</PackageReleaseNotes>
24+
<PackageReleaseNotes>1. Jint was updated to version 3.0.0 Beta 2047;
25+
2. In configuration settings of the Jint JS engine was added one new property - `AllowReflection` (default `false`).</PackageReleaseNotes>
2526
</PropertyGroup>
2627

2728
<ItemGroup>
2829
<PackageReference Include="AdvancedStringBuilder" Version="0.1.0" />
29-
<PackageReference Include="Jint" Version="3.0.0-beta-2046" />
30+
<PackageReference Include="Jint" Version="3.0.0-beta-2047" />
3031

3132
<ProjectReference Include="../JavaScriptEngineSwitcher.Core/JavaScriptEngineSwitcher.Core.csproj" />
3233
</ItemGroup>

src/JavaScriptEngineSwitcher.Jint/JintJsEngine.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public sealed class JintJsEngine : JsEngineBase
5151
/// <summary>
5252
/// Version of original JS engine
5353
/// </summary>
54-
private const string EngineVersion = "3.0.0 Beta 2046";
54+
private const string EngineVersion = "3.0.0 Beta 2047";
5555

5656
/// <summary>
5757
/// Jint JS engine
@@ -119,11 +119,7 @@ public JintJsEngine(JintSettings settings)
119119
try
120120
{
121121
_jsEngine = new OriginalEngine(options => {
122-
if (jintSettings.AllowReflection)
123-
{
124-
options.SetTypeResolver(new OriginalTypeResolver());
125-
options.Interop.AllowGetType = true;
126-
}
122+
options.Interop.AllowGetType = jintSettings.AllowReflection;
127123

128124
options
129125
.CancellationToken(_cancellationTokenSource.Token)

src/JavaScriptEngineSwitcher.Jint/readme.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
===========
1414
JavaScriptEngineSwitcher.Jint contains adapter `JintJsEngine` (wrapper for the
1515
Jint JavaScript Engine (http://github.com/sebastienros/jint) version
16-
3.0.0 Beta 2046).
16+
3.0.0 Beta 2047).
1717

1818
=============
1919
RELEASE NOTES
2020
=============
21-
In configuration settings of the Jint JS engine was added one new property -
22-
`AllowReflection` (default `false`).
21+
1. Jint was updated to version 3.0.0 Beta 2047;
22+
2. In configuration settings of the Jint JS engine was added one new property -
23+
`AllowReflection` (default `false`).
2324

2425
=============
2526
DOCUMENTATION

0 commit comments

Comments
 (0)