Bug 1044205 - Fix up one other use of CompartmentPrivate::Get. a=bustage
authorRyan VanderMeulen <ryanvm@gmail.com>
Mon, 04 Aug 2014 13:10:09 -0400
changeset 208234 54fe10b3558d
parent 208233 932afd80c5a0
child 208235 fef863fddff3
child 208237 f212bd501efa
child 208239 784c7fb4c431
push id3784
push userryanvm@gmail.com
push date2014-08-04 17:16 +0000
treeherdermozilla-beta@54fe10b3558d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1044205
milestone32.0
Bug 1044205 - Fix up one other use of CompartmentPrivate::Get. a=bustage
js/xpconnect/src/XPCWrappedNativeScope.cpp
--- a/js/xpconnect/src/XPCWrappedNativeScope.cpp
+++ b/js/xpconnect/src/XPCWrappedNativeScope.cpp
@@ -488,17 +488,17 @@ XPCWrappedNativeScope::SweepAllWrappedNa
 // static
 void
 XPCWrappedNativeScope::KillDyingScopes()
 {
     XPCWrappedNativeScope* cur = gDyingScopes;
     while (cur) {
         XPCWrappedNativeScope* next = cur->mNext;
         if (cur->mGlobalJSObject)
-            CompartmentPrivate::Get(cur->mGlobalJSObject)->scope = nullptr;
+            GetCompartmentPrivate(cur->mGlobalJSObject)->scope = nullptr;
         delete cur;
         cur = next;
     }
     gDyingScopes = nullptr;
 }
 
 struct ShutdownData
 {