Bug 1422432 - Remove PrintJSStack(). r=mrbkap draft
authorAndrew McCreight <continuation@gmail.com>
Fri, 01 Dec 2017 16:16:11 -0800
changeset 708612 2a208a7e6e3637144850a0bbc057c02132379362
parent 707235 e19b017880c8d71385aed453bacbe2b473757e90
child 708613 95cca47010f01df34f1d663d10817839b85c8a57
push id92396
push userbmo:continuation@gmail.com
push dateWed, 06 Dec 2017 21:48:09 +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;
     }