Bug 1777529 - Remove Tracelogger support from Shell r=jandem

Differential Revision: https://phabricator.services.mozilla.com/D150779
This commit is contained in:
Matthew Gaudet
2022-07-13 15:26:52 +00:00
parent dde8476d9d
commit 36f63dff50

View File

@@ -11670,18 +11670,11 @@ static void SetWorkerContextOptions(JSContext* cx) {
}
static int Shell(JSContext* cx, OptionParser* op) {
if (JS::TraceLoggerSupported()) {
JS::StartTraceLogger(cx);
}
#ifdef JS_STRUCTURED_SPEW
cx->spewer().enableSpewing();
#endif
auto exitShell = MakeScopeExit([&] {
if (JS::TraceLoggerSupported()) {
JS::SpewTraceLoggerForCurrentProcess();
JS::StopTraceLogger(cx);
}
#ifdef JS_STRUCTURED_SPEW
cx->spewer().disableSpewing();
#endif