mirror of
https://github.com/swc-project/swc.git
synced 2024-11-27 13:38:33 +03:00
Merge #362
362: Fix #358 r=kdy1 a=kdy1 Fix #358 Co-authored-by: 강동윤 <kdy1@outlook.kr>
This commit is contained in:
commit
48b2607b28
@ -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