Skip to content

Commit 86122a9

Browse files
committed
In JavaScriptEngineSwitcher.Jint added support of Jint version 3.0.0 Beta 2045
1 parent e1b4d00 commit 86122a9

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
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.101"
3+
"version": "7.0.102"
44
}
55
}

src/JavaScriptEngineSwitcher.Jint/JavaScriptEngineSwitcher.Jint.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
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 2044).</Description>
21+
<Description>JavaScriptEngineSwitcher.Jint contains adapter `JintJsEngine` (wrapper for the Jint JavaScript Engine (http://github.com/sebastienros/jint) version 3.0.0 Beta 2045).</Description>
2222
<PackageTags>$(PackageCommonTags);Jint</PackageTags>
2323
<PackageIconFullPath>../../Icons/JavaScriptEngineSwitcher_Jint_Logo128x128.png</PackageIconFullPath>
24-
<PackageReleaseNotes>Jint was updated to version 3.0.0 Beta 2044.</PackageReleaseNotes>
24+
<PackageReleaseNotes>Jint was updated to version 3.0.0 Beta 2045.</PackageReleaseNotes>
2525
</PropertyGroup>
2626

2727
<ItemGroup>
2828
<PackageReference Include="AdvancedStringBuilder" Version="0.1.0" />
29-
<PackageReference Include="Jint" Version="3.0.0-beta-2044" />
29+
<PackageReference Include="Jint" Version="3.0.0-beta-2045" />
3030

3131
<ProjectReference Include="../JavaScriptEngineSwitcher.Core/JavaScriptEngineSwitcher.Core.csproj" />
3232
</ItemGroup>

src/JavaScriptEngineSwitcher.Jint/JintJsEngine.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public sealed class JintJsEngine : JsEngineBase
5050
/// <summary>
5151
/// Version of original JS engine
5252
/// </summary>
53-
private const string EngineVersion = "3.0.0 Beta 2044";
53+
private const string EngineVersion = "3.0.0 Beta 2045";
5454

5555
/// <summary>
5656
/// Jint JS engine
@@ -77,6 +77,11 @@ public sealed class JintJsEngine : JsEngineBase
7777
/// </summary>
7878
private OriginalDebuggerEventHandler _debuggerStepCallback;
7979

80+
/// <summary>
81+
/// Flag for whether to allow run the script in strict mode
82+
/// </summary>
83+
private bool _strictMode;
84+
8085
/// <summary>
8186
/// Synchronizer of script execution
8287
/// </summary>
@@ -142,6 +147,7 @@ public JintJsEngine(JintSettings settings)
142147
{
143148
_jsEngine.DebugHandler.Step += _debuggerStepCallback;
144149
}
150+
_strictMode = settings.StrictMode;
145151
}
146152
catch (Exception e)
147153
{
@@ -353,7 +359,7 @@ protected override IPrecompiledScript InnerPrecompile(string code, string docume
353359

354360
try
355361
{
356-
parsedScript = OriginalEngine.PrepareScript(code, uniqueDocumentName);
362+
parsedScript = OriginalEngine.PrepareScript(code, uniqueDocumentName, _strictMode);
357363
}
358364
catch (OriginalParserException e)
359365
{

src/JavaScriptEngineSwitcher.Jint/readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
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 2044).
16+
3.0.0 Beta 2045).
1717

1818
=============
1919
RELEASE NOTES
2020
=============
21-
Jint was updated to version 3.0.0 Beta 2044.
21+
Jint was updated to version 3.0.0 Beta 2045.
2222

2323
=============
2424
DOCUMENTATION

0 commit comments

Comments
 (0)