20 auto jsWindowId = jsWindowRef->id();
23 std::tie(std::ignore, added) = m_windowRefs.insert({jsWindowRef->id(), jsWindowRef});
25 qOhosReportFatalErrorAndAbort(
26 "%s: Duplicate jsWindow with id: %f", Q_FUNC_INFO, jsWindowId.value());
29 return QtOhos::makeProxyWithJsThreadDeleter(
30 QtOhos::makeDestroyNotifier([
this, jsWindowId]() {
31 std::ignore = m_windowRefs.erase(jsWindowId);