Bug 1301333 - mark XPCJSContext::Initialize as initialisation function for XPCJSContext. r=bobbyholley
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Fri, 16 Sep 2016 15:00:52 +0300
changeset 314598 6cf09a35f5295baef0706f63a80c308abdfd4594
parent 314597 c15e4f47777ef160dacacd9dfce9cc1186213ac8
child 314599 b2b7cbb3efe4a6d2e05ac38ba63c5b5fc7dda1a8
push id81945
push userbpostelnicu@mozilla.com
push dateWed, 21 Sep 2016 07:26:24 +0000
treeherdermozilla-inbound@6cf09a35f529 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbobbyholley
bugs1301333
milestone52.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 1301333 - mark XPCJSContext::Initialize as initialisation function for XPCJSContext. r=bobbyholley MozReview-Commit-ID: HYj244xg1VD
js/xpconnect/src/xpcprivate.h
--- a/js/xpconnect/src/xpcprivate.h
+++ b/js/xpconnect/src/xpcprivate.h
@@ -588,16 +588,17 @@ public:
     PRTime GetWatchdogTimestamp(WatchdogTimestampCategory aCategory);
 
     nsresult GetPendingResult() { return mPendingResult; }
     void SetPendingResult(nsresult rv) { mPendingResult = rv; }
 
 private:
     XPCJSContext();
 
+    MOZ_IS_CLASS_INIT
     nsresult Initialize();
 
     void ReleaseIncrementally(nsTArray<nsISupports*>& array);
 
     static const char* const mStrings[IDX_TOTAL_COUNT];
     jsid mStrIDs[IDX_TOTAL_COUNT];
     JS::Value mStrJSVals[IDX_TOTAL_COUNT];