mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(prettier): async arrow expression (#1457)
This commit is contained in:
parent
59b8fdfaa5
commit
4c213a1c14
2 changed files with 5 additions and 5 deletions
|
|
@ -8,6 +8,10 @@ pub(super) fn print_arrow_function<'a>(
|
|||
) -> Doc<'a> {
|
||||
let mut parts = p.vec();
|
||||
|
||||
if expr.r#async {
|
||||
parts.push(ss!("async "));
|
||||
}
|
||||
|
||||
let parameters = expr.params.format(p);
|
||||
parts.push(parameters);
|
||||
parts.push(ss!(" => "));
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Compatibility: 127/601 (21.13%)
|
||||
Compatibility: 129/601 (21.46%)
|
||||
|
||||
# Failed
|
||||
|
||||
|
|
@ -90,7 +90,6 @@ Compatibility: 127/601 (21.13%)
|
|||
### async
|
||||
* async/await-parse.js
|
||||
* async/conditional-expression.js
|
||||
* async/exponentiation.js
|
||||
* async/inline-await.js
|
||||
* async/nested.js
|
||||
* async/nested2.js
|
||||
|
|
@ -345,9 +344,6 @@ Compatibility: 127/601 (21.13%)
|
|||
* for/continue-and-break-comment-2.js
|
||||
* for/continue-and-break-comment-without-blocks.js
|
||||
|
||||
### for-await
|
||||
* for-await/for-await.js
|
||||
|
||||
### function
|
||||
* function/function_expression.js
|
||||
* function/issue-10277.js
|
||||
|
|
|
|||
Loading…
Reference in a new issue