Source

jsprobes-patches / provide-all-compartment-ptrs

# HG changeset patch
# Parent 2042831990fe212e719f32ec1ea3090326776197

diff --git a/js/xpconnect/src/XPCJSRuntime.cpp b/js/xpconnect/src/XPCJSRuntime.cpp
--- a/js/xpconnect/src/XPCJSRuntime.cpp
+++ b/js/xpconnect/src/XPCJSRuntime.cpp
@@ -1241,13 +1241,13 @@
                 name.AppendLiteral(", ");
                 name.Append(compartmentPrivate->location);
             }
+        }
             
-            if (getAddress) {
-                // ample; 64-bit address max is 18 chars
-                const int maxLength = 31;
-                nsPrintfCString address(maxLength, ", 0x%llx", PRUint64(c));
-                name.Append(address);
-            }
+        if (getAddress) {
+            // ample; 64-bit address max is 18 chars
+            const int maxLength = 31;
+            nsPrintfCString address(maxLength, ", 0x%llx", PRUint64(c));
+            name.Append(address);
         }
         
         // A hack: replace forward slashes with '\\' so they aren't