| 3174 | } |
| 3175 | } |
| 3176 | |
| 3177 | if (!_daemonClients.empty() && _onDaemonClientEventFunction) { |
| 3178 | for (const auto& it : _daemonClients) { |
| 3179 | notifyDaemonClientEvent(jsContext, |
| 3180 | DaemonClientEventTypeConnected, |
| 3181 | it.second.get(), |
| 3182 | JSValue(), |
| 3183 | _onDaemonClientEventFunction.value().get(), |
| 3184 | exceptionTracker); |
| 3185 | } |
| 3186 | } |
| 3187 | } |
| 3188 | } |
| 3189 | |
| 3190 | void JavaScriptRuntime::onModuleUnloaded(const ResourceId& resourceId, JavaScriptEntryParameters& /*jsEntry*/) { |
| 3191 | if (resourceId == valdiModuleResourceId()) { |
| 3192 | _onDaemonClientEventFunction = Result<JSValueRef>(); |
| 3193 | |
| 3194 | _contextHandler->removeJsContextHandler(); |
| 3195 | |
| 3196 | if (_contextHandler->needsJsContextHandler()) { |
| 3197 | _pendingModulesToReload.insert(resourceId); |
| 3198 | } |
| 3199 | } else if (resourceId == symbolicatorResourceId()) { |
| 3200 | _symbolicateFunction = Result<JSValueRef>(); |
| 3201 | } |
| 3202 | } |
| 3203 |
no test coverage detected