File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed
src/JavaScriptEngineSwitcher.NiL Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 11{
22 "sdk" : {
3- "version" : " 2.1.103 "
3+ "version" : " 2.1.105 "
44 }
55}
Original file line number Diff line number Diff line change 99 <TreatWarningsAsErrors >true</TreatWarningsAsErrors >
1010 <NoWarn >$(NoWarn);CS1591</NoWarn >
1111 <GenerateDocumentationFile >true</GenerateDocumentationFile >
12- <Description >JavaScriptEngineSwitcher.NiL contains adapter `NiLJsEngine` (wrapper for the NiL JavaScript Engine (https://github.com/nilproject/NiL.JS) version 2.5.1241 ).</Description >
13- <PackageIconUrl >https://raw.githubusercontent.com/Taritsyn/JavaScriptEngineSwitcher/master /Icons/JavaScriptEngineSwitcher_NiL_Logo128x128.png</PackageIconUrl >
12+ <Description >JavaScriptEngineSwitcher.NiL contains adapter `NiLJsEngine` (wrapper for the NiL JavaScript Engine (https://github.com/nilproject/NiL.JS) version 2.5.1243 ).</Description >
13+ <PackageIconUrl >https://raw.githubusercontent.com/Taritsyn/JavaScriptEngineSwitcher/3.X /Icons/JavaScriptEngineSwitcher_NiL_Logo128x128.png</PackageIconUrl >
1414 <PackageTags >JavaScriptEngineSwitcher;JavaScript;ECMAScript;NiL</PackageTags >
1515 </PropertyGroup >
1616
2525 </ItemGroup >
2626
2727 <ItemGroup Condition =" '$(TargetFramework)' == 'net40-client' Or '$(TargetFramework)' == 'net45' " >
28- <PackageReference Include =" NiL.JS" Version =" 2.5.1241 " />
28+ <PackageReference Include =" NiL.JS" Version =" 2.5.1243 " />
2929 </ItemGroup >
3030
3131 <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard1.3' Or '$(TargetFramework)' == 'netstandard2.0' " >
32- <PackageReference Include =" NiL.JS.NetCore" Version =" 2.5.1241 " />
32+ <PackageReference Include =" NiL.JS.NetCore" Version =" 2.5.1243 " />
3333 </ItemGroup >
3434
3535 <ItemGroup >
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public sealed class NiLJsEngine : JsEngineBase
3939 /// <summary>
4040 /// Version of original JS engine
4141 /// </summary>
42- private const string EngineVersion = "2.5.1241 " ;
42+ private const string EngineVersion = "2.5.1243 " ;
4343
4444 /// <summary>
4545 /// Regular expression for working with the syntax error message
@@ -426,11 +426,15 @@ protected override void InnerRemoveVariable(string variableName)
426426 {
427427 lock ( _synchronizer )
428428 {
429+ #if NETSTANDARD
429430 OriginalValue variableValue = _jsContext . GetVariable ( variableName ) ;
430431 if ( variableValue . ValueType != OriginalValueType . NotExists )
431432 {
432433 variableValue . Assign ( OriginalValue . NotExists ) ;
433434 }
435+ #else
436+ _jsContext . DeleteVariable ( variableName ) ;
437+ #endif
434438 }
435439 }
436440 catch ( OriginalException e )
Original file line number Diff line number Diff line change 1212 DESCRIPTION
1313 ===========
1414 JavaScriptEngineSwitcher.NiL contains adapter `NiLJsEngine` (wrapper for the
15- NiL JavaScript Engine (https://github.com/nilproject/NiL.JS) version 2.5.1241 ).
15+ NiL JavaScript Engine (https://github.com/nilproject/NiL.JS) version 2.5.1243 ).
1616
1717 =============
1818 DOCUMENTATION
You can’t perform that action at this time.
0 commit comments