fix: ensure TracingAgent in place for SWs (#31459)
This commit is contained in:
parent
51b49d5bd8
commit
8364375347
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,10 @@ void WebWorkerObserver::WorkerScriptReadyForEvaluation(
|
|||
// Start the embed thread.
|
||||
node_bindings_->PrepareMessageLoop();
|
||||
|
||||
// Setup node tracing controller.
|
||||
if (!node::tracing::TraceEventHelper::GetAgent())
|
||||
node::tracing::TraceEventHelper::SetAgent(node::CreateAgent());
|
||||
|
||||
// Setup node environment for each window.
|
||||
bool initialized = node::InitializeContext(worker_context);
|
||||
CHECK(initialized);
|
||||
|
|
Loading…
Reference in a new issue