void InspectorWorkerAgent::sendMessageToWorker(ErrorString* error, int workerId, const RefPtr<InspectorObject>& message) { WorkerFrontendChannel* channel = m_idToChannel.get(workerId); if (channel) channel->proxy()->sendMessageToInspector(message->toJSONString()); else *error = "Worker is gone"; }
void InspectorWorkerAgent::sendMessageToWorker(ErrorString& error, int workerId, const InspectorObject& message) { WorkerFrontendChannel* channel = m_idToChannel.get(workerId); if (channel) channel->proxy()->sendMessageToInspector(message.toJSONString()); else error = ASCIILiteral("Worker is gone"); }