Bug 798123 - Fix build bustage. r=Waldo
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 18 Oct 2012 22:21:38 -0400
changeset 110875 ee0b7a6877089a40b00ed8aeeada3ea24c4660d0
parent 110874 e0b2ebcbd56aebd151202e1a0d4f16c4462c172d
child 110876 b9892a0403e46e4eadc48444a1c73f022540c1d6
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersWaldo
bugs798123
milestone19.0a1
Bug 798123 - Fix build bustage. r=Waldo CLOSED TREE
js/xpconnect/public/nsTArrayHelpers.h
--- a/js/xpconnect/public/nsTArrayHelpers.h
+++ b/js/xpconnect/public/nsTArrayHelpers.h
@@ -56,19 +56,16 @@ nsTArrayToJSArray<nsString>(JSContext* a
   JSAutoRequest ar(aCx);
 
   JSObject* arrayObj = JS_NewArrayObject(aCx, aSourceArray.Length(), nullptr);
   if (!arrayObj) {
     NS_WARNING("JS_NewArrayObject failed!");
     return NS_ERROR_OUT_OF_MEMORY;
   }
 
-  JSObject* global = JS_GetGlobalForScopeChain(aCx);
-  MOZ_ASSERT(global);
-
   for (uint32_t index = 0; index < aSourceArray.Length(); index++) {
     JSString* s = JS_NewUCStringCopyN(aCx, aSourceArray[index].BeginReading(),
                                       aSourceArray[index].Length());
 
     if(!s) {
       NS_WARNING("Memory allocation error!");
       return NS_ERROR_OUT_OF_MEMORY;
     }