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