fix: clean compile warnings

This commit is contained in:
rcmerci
2025-09-26 01:13:48 +08:00
parent 58a3fc3157
commit 09aa5901d6
2 changed files with 3 additions and 1 deletions

View File

@@ -11,6 +11,8 @@
[clojure.string :as string]
[frontend.util :as util]))
#?(:cljs (set! *warn-on-infer* false))
;; ======================================================================
;; Interpreter

View File

@@ -88,7 +88,7 @@
;; Log thrown exceptions from comlink
;; https://github.com/GoogleChromeLabs/comlink/blob/dffe9050f63b1b39f30213adeb1dd4b9ed7d2594/src/comlink.ts#L223-L236
(if (and (= "HANDLER" (.-type data)) (= "throw" (.-name data)))
(if (.-isError (.-value data))
(if (.-isError (.-value ^js data))
(do (js/console.error "Unexpected webworker error:" (-> data bean/->clj (get-in [:value :value])))
(js/console.log (get-in (bean/->clj data) [:value :value :stack])))
(js/console.error "Unexpected webworker error :" data))