Be more precise in PromiseFlatString docs about why assigning PromiseFlatString(...) to a reference is safe

RESOLVED FIXED in mozilla35

Status

()

RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: Waldo, Assigned: Waldo)

Tracking

unspecified
mozilla35
Points:
---
Bug Flags:
qe-verify -

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

4 years ago
I didn't know assigning a tepmorary to a referenc, extended the temporary's lifetime to that of the reference.  It would be nice if the in-file comment were more precise about why this is happening, citing chapter/verse for authority.
(Assignee)

Comment 1

4 years ago
Created attachment 8487611 [details] [diff] [review]
Patch
Attachment #8487611 - Flags: review?(nfroyd)
Attachment #8487611 - Flags: review?(nfroyd) → review+
https://hg.mozilla.org/mozilla-central/rev/5c03643c3180
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.