Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ impl<'a> ArrowFunctionConverter<'a> {
match ancestor {
// Top level
Ancestor::ProgramBody(_)
// Function (includes class method body)
// Function params
| Ancestor::FunctionParams(_)
// Class property body
| Ancestor::PropertyDefinitionValue(_)
Expand All @@ -392,6 +392,7 @@ impl<'a> ArrowFunctionConverter<'a> {
Some(func.scope_id().get().unwrap())
}
}
// Function body
Ancestor::FunctionBody(func) => {
return if self.is_async_only() && *func.r#async()
&& matches!(
Expand Down