void InspectorWorkerAgent::disconnectFromWorker(ErrorString* error, int workerId) { WorkerFrontendChannel* channel = m_idToChannel.get(workerId); if (channel) channel->disconnectFromWorkerGlobalScope(); else *error = "Worker is gone"; }