From 8f0b1df9d81c7d353ebb3580a1d2485cd48b789b Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Thu, 28 Nov 2024 13:32:29 +0200 Subject: [PATCH] . --- test/reagenttest/utils.cljs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/test/reagenttest/utils.cljs b/test/reagenttest/utils.cljs index 0bbcba5a..747be454 100644 --- a/test/reagenttest/utils.cljs +++ b/test/reagenttest/utils.cljs @@ -75,25 +75,6 @@ (let [process (js/require "process")] (.removeListener process "uncaughtException" l)))))) -(defn wrap-capture-window-error-promise [f] - (if (exists? js/window) - (fn [] - (let [org js/console.onerror] - (set! js/window.onerror (fn [e] - (log-error e) - true)) - (-> (f) - (p/finally - (fn [] (set! js/window.onerror org)))))) - (fn [] - (let [process (js/require "process") - l (fn [e] - (log-error e))] - (.on process "uncaughtException" l) - (-> (f) - (p/finally - (fn [] (.removeListener process "uncaughtException" l)))))))) - (defn act* "Run f to trigger Reagent updates, will return Promise which will resolve after