Skip to content

Commit 46a63a1

Browse files
committed
.
1 parent f3da576 commit 46a63a1

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

test/reagenttest/utils.cljs

-19
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,6 @@
7575
(let [process (js/require "process")]
7676
(.removeListener process "uncaughtException" l))))))
7777

78-
(defn wrap-capture-window-error-promise [f]
79-
(if (exists? js/window)
80-
(fn []
81-
(let [org js/console.onerror]
82-
(set! js/window.onerror (fn [e]
83-
(log-error e)
84-
true))
85-
(-> (f)
86-
(p/finally
87-
(fn [] (set! js/window.onerror org))))))
88-
(fn []
89-
(let [process (js/require "process")
90-
l (fn [e]
91-
(log-error e))]
92-
(.on process "uncaughtException" l)
93-
(-> (f)
94-
(p/finally
95-
(fn [] (.removeListener process "uncaughtException" l))))))))
96-
9778
(defn act*
9879
"Run f to trigger Reagent updates,
9980
will return Promise which will resolve after

0 commit comments

Comments
 (0)