Bug 1229769 - Expose Promise interface to WorkerDebugger #ifdef SPIDERMONKEY_PROMISE;r=bz
authorEddy Bruel <ejpbruel@mozilla.com>
Wed, 30 Mar 2016 14:11:07 +0200
changeset 291063 69a7e03cf1f8ee309ab4bf38d1761693a30191d2
parent 291062 2fb51f179164d21bc4f2c3952d28225bd2099bfa
child 291064 be61ede92adbcad7000db7ba128276ced1ce73b2
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1229769
milestone48.0a1
Bug 1229769 - Expose Promise interface to WorkerDebugger #ifdef SPIDERMONKEY_PROMISE;r=bz
dom/webidl/Promise.webidl
--- a/dom/webidl/Promise.webidl
+++ b/dom/webidl/Promise.webidl
@@ -58,17 +58,17 @@ interface _Promise {
   // return value of PromiseSubclass.race to be a Promise object.  As a result,
   // we also have to do our argument conversion manually, because we want to
   // convert its exceptions into rejections.
   [NewObject, Throws]
   static any race(optional any iterable);
 };
 #else // SPIDERMONKEY_PROMISE
 [NoInterfaceObject,
- Exposed=(Window,Worker,System)]
+ Exposed=(Window,Worker,WorkerDebugger,System)]
 // Need to escape "Promise" so it's treated as an identifier.
 interface _Promise {
 };
 
 // Hack to allow us to have JS owning and properly tracing/CCing/etc a
 // PromiseNativeHandler.
 [NoInterfaceObject,
  Exposed=(Window,Worker,System)]