#100 cljs: throw js/Error not just a string

This commit is contained in:
anatoly 2018-10-25 15:44:41 -04:00
parent c210cc486c
commit 1acd4feb4c

View file

@ -16,7 +16,7 @@
:cljs (try ~f
(catch :default t#
(if ~fail?
(throw (~'str ~msg " " t#))
(throw (js/Error (~'str ~msg " " t#)))
{:f-failed (ex-info ~msg {} t#)})))))
(defmacro throw-runtime [msg]