diff --git a/js/xpconnect/src/nsXPConnect.cpp b/js/xpconnect/src/nsXPConnect.cpp index dc489aa969a9..40ea03e91d42 100644 --- a/js/xpconnect/src/nsXPConnect.cpp +++ b/js/xpconnect/src/nsXPConnect.cpp @@ -73,7 +73,9 @@ nsXPConnect::nsXPConnect() { XPCJSContext::InitTLS(); +#ifdef MOZ_GECKO_PROFILER JS::SetProfilingThreadCallbacks(profiler_register_thread, profiler_unregister_thread); +#endif XPCJSContext* xpccx = XPCJSContext::NewXPCJSContext(nullptr); if (!xpccx) {