Skip to content

Commit

Permalink
Fixed a error that occurred in the `ReflectionHelpers.IsAllowedProper…
Browse files Browse the repository at this point in the history
…ty` method when running on .NET Core 1.0
  • Loading branch information
Taritsyn committed Jan 8, 2024
1 parent ed02816 commit c9e3190
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/MsieJavaScriptEngine/Helpers/ReflectionHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,15 @@ private MemberComparer()

public override bool Equals(T x, T y)
{
if (x == null && y == null)
{
return true;
}
else if (x == null || y == null)
{
return false;
}

return x.Module == y.Module
#if !NETSTANDARD1_3
&& x.MetadataToken == y.MetadataToken
Expand Down
2 changes: 1 addition & 1 deletion src/MsieJavaScriptEngine/MsieJavaScriptEngine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageTags>JavaScript;ECMAScript;MSIE;IE;Edge;Chakra</PackageTags>
<PackageReleaseNotes>JSON2 library was updated to version of May 10, 2023.</PackageReleaseNotes>
<PackageReleaseNotes>Fixed a error that occurred in the `ReflectionHelpers.IsAllowedProperty` method when running on .NET Core 1.0.</PackageReleaseNotes>
<NeutralLanguage>en-US</NeutralLanguage>
<PackageOutputPath>../../nuget</PackageOutputPath>
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
Expand Down
3 changes: 2 additions & 1 deletion src/MsieJavaScriptEngine/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
=============
RELEASE NOTES
=============
JSON2 library was updated to version of May 10, 2023.
Fixed a error that occurred in the `ReflectionHelpers.IsAllowedProperty` method
when running on .NET Core 1.0.

============
PROJECT SITE
Expand Down

0 comments on commit c9e3190

Please sign in to comment.