Skip to content

Commit 72690f3

Browse files
authored
Upgrade to Acornima v1.2.0 (#2145)
1 parent ac3f89d commit 72690f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageVersion Include="Acornima" Version="1.1.1" />
8-
<PackageVersion Include="Acornima.Extras" Version="1.1.1" />
7+
<PackageVersion Include="Acornima" Version="1.2.0" />
8+
<PackageVersion Include="Acornima.Extras" Version="1.2.0" />
99
<PackageVersion Include="BenchmarkDotNet" Version="0.15.2" />
1010
<PackageVersion Include="BenchmarkDotNet.TestAdapter" Version="0.13.12" />
1111
<PackageVersion Include="FluentAssertions" Version="[7.2.0]" />

Jint/Runtime/Interpreter/JintFunctionDefinition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ internal Completion EvaluateBody(EvaluationContext context, Function functionObj
3737
{
3838
Completion result;
3939
JsArguments? argumentsInstance = null;
40-
if (Function.Expression)
40+
if (Function.Body is not FunctionBody)
4141
{
4242
// https://tc39.es/ecma262/#sec-runtime-semantics-evaluateconcisebody
4343
_bodyExpression ??= JintExpression.Build((Expression) Function.Body);

0 commit comments

Comments
 (0)