Bug 1178665 - Part 1: Make Promise::DispatchToMicroTask public. r=khuey
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Tue, 14 Jul 2015 21:44:00 +0200
changeset 287097 d488fe836a9bc1c9aa70b3dc66b5b037fcddd85c
parent 287096 4b328a6f7448002a7f0e4980a0bbae56a0f0b019
child 287098 7e8106a7e30333c641e335258793db6b91aba8e8
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs1178665
milestone42.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1178665 - Part 1: Make Promise::DispatchToMicroTask public. r=khuey
dom/promise/Promise.h
--- a/dom/promise/Promise.h
+++ b/dom/promise/Promise.h
@@ -200,27 +200,27 @@ public:
 
   JSObject* GlobalJSObject() const;
 
   JSCompartment* Compartment() const;
 
   // 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.
   explicit Promise(nsIGlobalObject* aGlobal);
 
   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);
 
   // Create the JS resolving functions of resolve() and reject(). And provide
   // references to the two functions by calling PromiseInit passed from Promise
   // constructor.
   void CallInitFunction(const GlobalObject& aGlobal, PromiseInit& aInit,
                         ErrorResult& aRv);