aboutsummaryrefslogtreecommitdiff
path: root/www/webkit2-gtk4/files/patch-Source_WTF_wtf_CompletionHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'www/webkit2-gtk4/files/patch-Source_WTF_wtf_CompletionHandler.h')
-rw-r--r--www/webkit2-gtk4/files/patch-Source_WTF_wtf_CompletionHandler.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/www/webkit2-gtk4/files/patch-Source_WTF_wtf_CompletionHandler.h b/www/webkit2-gtk4/files/patch-Source_WTF_wtf_CompletionHandler.h
new file mode 100644
index 000000000000..1e5008e4e240
--- /dev/null
+++ b/www/webkit2-gtk4/files/patch-Source_WTF_wtf_CompletionHandler.h
@@ -0,0 +1,10 @@
+--- Source/WTF/wtf/CompletionHandler.h.orig 2023-02-01 10:02:29.556588000 -0800
++++ Source/WTF/wtf/CompletionHandler.h 2023-02-01 10:02:58.701631000 -0800
+@@ -69,7 +69,6 @@
+ {
+ ASSERT(m_shouldBeCalledOnMainThread == isMainThread());
+ ASSERT_WITH_MESSAGE(m_function, "Completion handler should not be called more than once");
+- return std::exchange(m_function, nullptr)(std::forward<In>(in)...);
+ }
+
+ private: