Bug 798123 - Fix build bustage. r=Waldo
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 18 Oct 2012 22:21:38 -0400
changeset 110743 ee0b7a6877089a40b00ed8aeeada3ea24c4660d0
parent 110742 e0b2ebcbd56aebd151202e1a0d4f16c4462c172d
child 110744 b9892a0403e46e4eadc48444a1c73f022540c1d6
push id23712
push useremorley@mozilla.com
push dateFri, 19 Oct 2012 14:23:49 +0000
treeherdermozilla-central@7fcac3016159 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersWaldo
bugs798123
milestone19.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 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;
     }