Skip to content

Commit

Permalink
Upgrade to Esprima 3.0.0 (#1630)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahma authored Sep 3, 2023
1 parent d48ebd5 commit 073497d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Jint/EsprimaExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ internal static bool IsFunctionDefinition<T>(this T node) where T : Node
return type
is Nodes.FunctionExpression
or Nodes.ArrowFunctionExpression
or Nodes.ArrowParameterPlaceHolder
or Nodes.ClassExpression;
}

Expand Down
1 change: 0 additions & 1 deletion Jint/HoistingScope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ public void Visit(Node node, Node? parent)

if (childType != Nodes.FunctionDeclaration
&& childType != Nodes.ArrowFunctionExpression
&& childType != Nodes.ArrowParameterPlaceHolder
&& childType != Nodes.FunctionExpression
&& !childNode.ChildNodes.IsEmpty())
{
Expand Down
2 changes: 1 addition & 1 deletion Jint/Jint.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Esprima" Version="3.0.0-rc-04" />
<PackageReference Include="Esprima" Version="3.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="all" />
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all" />
<PackageReference Include="PolySharp" Version="1.13.2">
Expand Down

0 comments on commit 073497d

Please sign in to comment.