362: Fix #358 r=kdy1 a=kdy1

Fix #358

Co-authored-by: 강동윤 <kdy1@outlook.kr>
This commit is contained in:
bors[bot] 2019-04-07 14:10:29 +00:00
commit 48b2607b28

View File

@ -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!("*");
}