Bug 1178665 - Part 1: Make Promise::DispatchToMicroTask public. r=khuey

This commit is contained in:
Hiroyuki Ikezoe 2015-07-14 21:44:00 +02:00
parent 79d86a6353
commit 39455891a5

View File

@ -205,6 +205,10 @@ public:
// Return a unique-to-the-process identifier for this Promise.
uint64_t GetID();
// Queue an async microtask to current main or worker thread.
static void
DispatchToMicroTask(nsIRunnable* aRunnable);
protected:
// Do NOT call this unless you're Promise::Create. I wish we could enforce
// that from inside this class too, somehow.
@ -212,10 +216,6 @@ protected:
virtual ~Promise();
// Queue an async microtask to current main or worker thread.
static void
DispatchToMicroTask(nsIRunnable* aRunnable);
// Do JS-wrapping after Promise creation.
void CreateWrapper(ErrorResult& aRv);