mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 17:54:15 +03:00
Fix #358
This commit is contained in:
parent
5114dc9e95
commit
adcc5954ee
@ -1111,6 +1111,10 @@ impl<'a> Emitter<'a> {
|
||||
pub fn emit_method_prop(&mut self, node: &MethodProp) -> Result {
|
||||
self.emit_leading_comments_of_pos(node.span().lo())?;
|
||||
|
||||
if node.function.is_async {
|
||||
keyword!("async");
|
||||
}
|
||||
|
||||
if node.function.is_generator {
|
||||
punct!("*");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user