Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Deraen committed Nov 28, 2024
1 parent 452a4ee commit 8f0b1df
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/reagenttest/utils.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f0b1df

Please sign in to comment.