Closed Bug 1354212 Opened 7 years ago Closed 7 years ago

Async generator functions created through AsyncGenerator have an incorrect source representation

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: anba, Assigned: anba)

References

Details

Attachments

(1 file)

Test case:
---
var AsyncGenerator = async function*(){}.constructor;
print(AsyncGenerator("").toString());
---

Expected: Prints
```
async function* anonymous(
) {

}
```

Actual: Prints
```
async function anonymous(
) {

}
```
Attached patch bug1354212.patchSplinter Review
The test262 tests were derived from the existing test262 tests for the async functions.
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
Attachment #8855803 - Flags: review?(arai.unmht)
Attachment #8855803 - Flags: review?(arai.unmht) → review+
Pushed by ihsiao@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5649b13d63fc
Fix source representation for async generators created through AsyncGenerator intrinsic. r=arai
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/5649b13d63fc
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Depends on: 1357292
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: