Skip to content

Commit

Permalink
handling method is incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Oct 31, 2024
1 parent c8b0379 commit 90f1da9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl<'a, 'ctx> Traverse<'a> for AsyncGeneratorFunctions<'a, 'ctx> {
ctx: &mut TraverseCtx<'a>,
) {
let function = &mut node.value;
if function.r#async && !function.generator && !function.is_typescript_syntax() {
if function.r#async && function.generator && !function.is_typescript_syntax() {
self.executor.transform_function_for_method_definition(function, ctx);
}
}
Expand Down

0 comments on commit 90f1da9

Please sign in to comment.