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 1
1
{
2
2
"sdk" : {
3
- "version" : " 2.1.103 "
3
+ "version" : " 2.1.105 "
4
4
}
5
5
}
Original file line number Diff line number Diff line change 9
9
<TreatWarningsAsErrors >true</TreatWarningsAsErrors >
10
10
<NoWarn >$(NoWarn);CS1591</NoWarn >
11
11
<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 >
14
14
<PackageTags >JavaScriptEngineSwitcher;JavaScript;ECMAScript;NiL</PackageTags >
15
15
</PropertyGroup >
16
16
25
25
</ItemGroup >
26
26
27
27
<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 " />
29
29
</ItemGroup >
30
30
31
31
<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 " />
33
33
</ItemGroup >
34
34
35
35
<ItemGroup >
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public sealed class NiLJsEngine : JsEngineBase
39
39
/// <summary>
40
40
/// Version of original JS engine
41
41
/// </summary>
42
- private const string EngineVersion = "2.5.1241 " ;
42
+ private const string EngineVersion = "2.5.1243 " ;
43
43
44
44
/// <summary>
45
45
/// Regular expression for working with the syntax error message
@@ -426,11 +426,15 @@ protected override void InnerRemoveVariable(string variableName)
426
426
{
427
427
lock ( _synchronizer )
428
428
{
429
+ #if NETSTANDARD
429
430
OriginalValue variableValue = _jsContext . GetVariable ( variableName ) ;
430
431
if ( variableValue . ValueType != OriginalValueType . NotExists )
431
432
{
432
433
variableValue . Assign ( OriginalValue . NotExists ) ;
433
434
}
435
+ #else
436
+ _jsContext . DeleteVariable ( variableName ) ;
437
+ #endif
434
438
}
435
439
}
436
440
catch ( OriginalException e )
Original file line number Diff line number Diff line change 12
12
DESCRIPTION
13
13
===========
14
14
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 ).
16
16
17
17
=============
18
18
DOCUMENTATION
You can’t perform that action at this time.
0 commit comments