Skip to content

Commit e801791

Browse files
committed
Version 3.0.7
1 parent ef2f86a commit e801791

File tree

14 files changed

+17
-22
lines changed

14 files changed

+17
-22
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Change log
22
==========
33

4+
## v3.0.7 - March 8, 2020
5+
* Fixed a error “Program crash after function call with too much parameters”
6+
47
## v3.0.6 - December 16, 2019
58
* Fixed a errors leading to null reference exceptions in the `ReflectionHelpers` class. Special thanks to [Vanjoge](https://github.com/vanjoge).
69

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012-2019 Andrey Taritsyn - http://www.taritsyn.ru
1+
Copyright (c) 2012-2020 Andrey Taritsyn - http://www.taritsyn.ru
22

33
Apache License
44
Version 2.0, January 2004

build/common.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Copyright>Copyright © 2012-2019 Andrey Taritsyn</Copyright>
3+
<Copyright>Copyright © 2012-2020 Andrey Taritsyn</Copyright>
44
</PropertyGroup>
55

66
<PropertyGroup Condition=" '$(TargetFramework)' == 'net40-client' Or '$(TargetFramework)' == 'net45' Or '$(TargetFramework)' == 'net451' Or '$(TargetFramework)' == 'net46' ">

src/MsieJavaScriptEngine/HostObject.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,7 @@ protected override object InnerInvokeMember(string name, BindingFlags invokeAttr
5757
skippedArgCount = 1;
5858
}
5959

60-
int processedArgCount = argCount;
61-
if (processedArgCount >= skippedArgCount)
62-
{
63-
processedArgCount -= skippedArgCount;
64-
}
60+
int processedArgCount = argCount >= skippedArgCount ? argCount - skippedArgCount : 0;
6561
if (processedArgCount > parameterCount)
6662
{
6763
processedArgCount = parameterCount;

src/MsieJavaScriptEngine/JsRt/TypeMapper.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -242,11 +242,7 @@ protected object[] GetHostItemMemberArguments(TValue[] args, int maxArgCount = -
242242

243243
int argCount = args.Length;
244244
const int skippedArgCount = 1;
245-
int processedArgCount = argCount;
246-
if (processedArgCount >= skippedArgCount)
247-
{
248-
processedArgCount -= skippedArgCount;
249-
}
245+
int processedArgCount = argCount >= skippedArgCount ? argCount - skippedArgCount : 0;
250246
if (maxArgCount >= 0 && processedArgCount > maxArgCount)
251247
{
252248
processedArgCount = maxArgCount;

src/MsieJavaScriptEngine/MsieJavaScriptEngine.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Product>MSIE JavaScript Engine for .NET</Product>
5-
<VersionPrefix>3.0.6</VersionPrefix>
5+
<VersionPrefix>3.0.7</VersionPrefix>
66
<TargetFrameworks>net40-client;net45;netstandard1.3;netstandard2.0</TargetFrameworks>
77
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.3' ">1.6.0</NetStandardImplicitPackageVersion>
88
<LangVersion>7.3</LangVersion>

src/MsieJavaScriptEngine/readme.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22

33
--------------------------------------------------------------------------------
4-
README file for MSIE JavaScript Engine for .NET v3.0.6
4+
README file for MSIE JavaScript Engine for .NET v3.0.7
55

66
--------------------------------------------------------------------------------
77

8-
Copyright (c) 2012-2019 Andrey Taritsyn - http://www.taritsyn.ru
8+
Copyright (c) 2012-2020 Andrey Taritsyn - http://www.taritsyn.ru
99

1010

1111
===========

test/MsieJavaScriptEngine.Benchmarks/MsieJavaScriptEngine.Benchmarks.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Product>MSIE JavaScript Engine: Benchmarks</Product>
5-
<VersionPrefix>3.0.6</VersionPrefix>
5+
<VersionPrefix>3.0.7</VersionPrefix>
66
<TargetFrameworks>net461;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
77
<OutputType>Exe</OutputType>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

test/MsieJavaScriptEngine.Test.Auto/MsieJavaScriptEngine.Test.Auto.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Product>MSIE JavaScript Engine: Tests for Auto Mode</Product>
5-
<VersionPrefix>3.0.6</VersionPrefix>
5+
<VersionPrefix>3.0.7</VersionPrefix>
66
<TargetFrameworks>net40;net451;netcoreapp1.0;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
77
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">1.0.16</RuntimeFrameworkVersion>
88
<OutputType>Library</OutputType>

test/MsieJavaScriptEngine.Test.ChakraActiveScript/MsieJavaScriptEngine.Test.ChakraActiveScript.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Product>MSIE JavaScript Engine: Tests for Chakra ActiveScript Mode</Product>
5-
<VersionPrefix>3.0.6</VersionPrefix>
5+
<VersionPrefix>3.0.7</VersionPrefix>
66
<TargetFrameworks>net40;net451</TargetFrameworks>
77
<OutputType>Library</OutputType>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

test/MsieJavaScriptEngine.Test.ChakraEdgeJsRt/MsieJavaScriptEngine.Test.ChakraEdgeJsRt.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Product>MSIE JavaScript Engine: Tests for Chakra Edge JsRT Mode</Product>
5-
<VersionPrefix>3.0.6</VersionPrefix>
5+
<VersionPrefix>3.0.7</VersionPrefix>
66
<TargetFrameworks>net40;net451;netcoreapp1.0;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
77
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">1.0.16</RuntimeFrameworkVersion>
88
<OutputType>Library</OutputType>

test/MsieJavaScriptEngine.Test.ChakraIeJsRt/MsieJavaScriptEngine.Test.ChakraIeJsRt.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Product>MSIE JavaScript Engine: Tests for Chakra IE JsRT Mode</Product>
5-
<VersionPrefix>3.0.6</VersionPrefix>
5+
<VersionPrefix>3.0.7</VersionPrefix>
66
<TargetFrameworks>net40;net451;netcoreapp1.0;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
77
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">1.0.16</RuntimeFrameworkVersion>
88
<OutputType>Library</OutputType>

test/MsieJavaScriptEngine.Test.Classic/MsieJavaScriptEngine.Test.Classic.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Product>MSIE JavaScript Engine: Tests for Classic Mode</Product>
5-
<VersionPrefix>3.0.6</VersionPrefix>
5+
<VersionPrefix>3.0.7</VersionPrefix>
66
<TargetFrameworks>net40;net451</TargetFrameworks>
77
<OutputType>Library</OutputType>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

test/MsieJavaScriptEngine.Test.Common/MsieJavaScriptEngine.Test.Common.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Product>MSIE JavaScript Engine: Common Tests</Product>
5-
<VersionPrefix>3.0.6</VersionPrefix>
5+
<VersionPrefix>3.0.7</VersionPrefix>
66
<TargetFrameworks>net40;net451;netcoreapp1.0;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
77
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">1.0.16</RuntimeFrameworkVersion>
88
<OutputType>Library</OutputType>

0 commit comments

Comments
 (0)