Bug 1422432 - Remove PrintJSStack(). r=mrbkap draft
authorAndrew McCreight <continuation@gmail.com>
Fri, 01 Dec 2017 16:16:11 -0800
changeset 706484 3c096d545adf15649001871c1de23ad298daee95
parent 706483 a857e472739a7eccff458394434736769bce557c
child 742662 12765374664c9fac77edeab3187ce3f652c2166c
push id91806
push userbmo:continuation@gmail.com
push dateSat, 02 Dec 2017 00:24:23 +0000
reviewersmrbkap
bugs1422432
milestone59.0a1
Bug 1422432 - Remove PrintJSStack(). r=mrbkap MozReview-Commit-ID: 8ObqjMxAzIR
js/xpconnect/src/nsXPConnect.cpp
--- a/js/xpconnect/src/nsXPConnect.cpp
+++ b/js/xpconnect/src/nsXPConnect.cpp
@@ -1127,23 +1127,16 @@ nsXPConnect::ReadFunction(nsIObjectInput
 
 /* These are here to be callable from a debugger */
 extern "C" {
 JS_EXPORT_API(void) DumpJSStack()
 {
     xpc_DumpJSStack(true, true, false);
 }
 
-JS_EXPORT_API(const char*) PrintJSStack()
-{
-    if (JSContext* cx = nsContentUtils::GetCurrentJSContext())
-        return xpc_PrintJSStack(cx, true, true, false).release();
-    return "There is no JSContext on the stack.\n";
-}
-
 JS_EXPORT_API(void) DumpCompleteHeap()
 {
     nsCOMPtr<nsICycleCollectorListener> listener =
       do_CreateInstance("@mozilla.org/cycle-collector-logger;1");
     if (!listener) {
       NS_WARNING("Failed to create CC logger");
       return;
     }