mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
fix(prettier): class without name (#1455)
This commit is contained in:
parent
eecf8d3dc6
commit
18d8be0353
2 changed files with 2 additions and 7 deletions
|
|
@ -7,8 +7,8 @@ pub(super) fn print_class<'a>(p: &mut Prettier<'a>, class: &Class<'a>) -> Doc<'a
|
|||
parts.push(ss!("class "));
|
||||
if let Some(id) = &class.id {
|
||||
parts.push(id.format(p));
|
||||
parts.push(ss!(" "));
|
||||
}
|
||||
parts.push(ss!(" "));
|
||||
parts.push(class.body.format(p));
|
||||
Doc::Array(parts)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
Compatibility: 119/601 (19.80%)
|
||||
Compatibility: 124/601 (20.63%)
|
||||
|
||||
# Failed
|
||||
|
||||
|
|
@ -161,15 +161,12 @@ Compatibility: 119/601 (19.80%)
|
|||
* classes/asi.js
|
||||
* classes/assignment.js
|
||||
* classes/binary.js
|
||||
* classes/call.js
|
||||
* classes/class-fields-features.js
|
||||
* classes/empty.js
|
||||
* classes/member.js
|
||||
* classes/method.js
|
||||
* classes/new.js
|
||||
* classes/property.js
|
||||
* classes/super.js
|
||||
* classes/ternary.js
|
||||
|
||||
### classes/keyword-property
|
||||
* classes/keyword-property/async.js
|
||||
|
|
@ -333,8 +330,6 @@ Compatibility: 119/601 (19.80%)
|
|||
|
||||
### export-default
|
||||
* export-default/binary_and_template.js
|
||||
* export-default/body.js
|
||||
* export-default/class_instance.js
|
||||
* export-default/function_in_template.js
|
||||
* export-default/function_tostring.js
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue