mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1167597 - Mark PromiseReportRejectFeature::mPromise as MOZ_NON_OWNING_REF. r=ehsan
This commit is contained in:
parent
461e033c3c
commit
9cea8f483b
@ -50,8 +50,9 @@ class Promise;
|
||||
#if defined(DOM_PROMISE_DEPRECATED_REPORTING)
|
||||
class PromiseReportRejectFeature : public workers::WorkerFeature
|
||||
{
|
||||
// The Promise that owns this feature.
|
||||
Promise* mPromise;
|
||||
// PromiseReportRejectFeature is held by an nsAutoPtr on the Promise which
|
||||
// means that this object will be destroyed before the Promise is destroyed.
|
||||
Promise* MOZ_NON_OWNING_REF mPromise;
|
||||
|
||||
public:
|
||||
explicit PromiseReportRejectFeature(Promise* aPromise)
|
||||
|
Loading…
Reference in New Issue
Block a user