This commit is contained in:
강동윤 2019-03-25 12:11:15 +09:00
parent 5114dc9e95
commit adcc5954ee

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