Async function expression's source notation have parens in wrong position

RESOLVED FIXED in Firefox 54

Status

()

RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: arai, Assigned: arai)

Tracking

Trunk
mozilla54
Points:
---

Firefox Tracking Flags

(firefox54 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

2 years ago
code:
  (async function f() {}).toSource()

actual result:
  async (function f() {})

expected result:
  (async function f() {})
(Assignee)

Comment 1

2 years ago
Created attachment 8831689 [details] [diff] [review]
Fix source notation of async function expression.

swapped the position of "(" and "async ".
this doesn't affect toString, since toString doesn't have "(".
Attachment #8831689 - Flags: review?(till)
Comment on attachment 8831689 [details] [diff] [review]
Fix source notation of async function expression.

Review of attachment 8831689 [details] [diff] [review]:
-----------------------------------------------------------------

Uh, yes, good catch.
Attachment #8831689 - Flags: review?(till) → review+

Comment 4

2 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/e717a96e766d
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
status-firefox54: affected → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.