Bug 1777529 - Remove Tracelogger support from Shell r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D150779
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user