mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 984048 - Promise::MaybeReject ErrorEvent overload no longer needed. Fix compile error. r=bustage
--HG-- extra : amend_source : 5fcbc1c3912503e98f36fce514ddc2433da31a3e
This commit is contained in:
parent
95f2b45933
commit
1b42d15b04
@ -27,7 +27,6 @@ namespace dom {
|
||||
|
||||
class AnyCallback;
|
||||
class DOMError;
|
||||
class ErrorEvent;
|
||||
class PromiseCallback;
|
||||
class PromiseInit;
|
||||
class PromiseNativeHandler;
|
||||
@ -95,10 +94,6 @@ public:
|
||||
MOZ_ASSERT(NS_FAILED(aArg));
|
||||
MaybeSomething(aArg, &Promise::MaybeReject);
|
||||
}
|
||||
|
||||
inline void MaybeReject(ErrorEvent* aArg) {
|
||||
MaybeSomething(aArg, &Promise::MaybeReject);
|
||||
}
|
||||
// DO NOT USE MaybeRejectBrokenly with in new code. Promises should be
|
||||
// rejected with Error instances.
|
||||
// Note: MaybeRejectBrokenly is a template so we can use it with DOMError
|
||||
|
Loading…
Reference in New Issue
Block a user