Skip to content

Commit

Permalink
Editorial: widen parameter type of IsAnonymousFunctionDefinition (tc3…
Browse files Browse the repository at this point in the history
…9#3148)

Among the 16 call sites of IsAnonymousFunctionDefinition, one of them in
NamedEvaluation of ParenthesizedExpression : `(` Expression `)` passes
|Expression| Parse Node which was not covered in the previous type
annotation. This commit fixes this issue.
  • Loading branch information
doehyunbaek authored and ljharb committed Oct 23, 2023
1 parent a1a4d48 commit 8abc390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -8990,7 +8990,7 @@ <h1>Static Semantics: IsFunctionDefinition ( ): a Boolean</h1>
<emu-clause id="sec-isanonymousfunctiondefinition" type="abstract operation">
<h1>
Static Semantics: IsAnonymousFunctionDefinition (
_expr_: an |AssignmentExpression| Parse Node or an |Initializer| Parse Node,
_expr_: an |AssignmentExpression| Parse Node, an |Initializer| Parse Node, or an |Expression| Parse Node,
): a Boolean
</h1>
<dl class="header">
Expand Down

0 comments on commit 8abc390

Please sign in to comment.