Fix cljs/clj bug

This commit is contained in:
Scott Richmond 2023-12-18 00:22:42 -05:00
parent ff1e1345b8
commit b12b49c197

View File

@ -990,7 +990,7 @@
(let [base-ctx (volatile! {::parent (volatile! ctx)})]
(try
(interpret-ast parsed base-ctx)
(catch Throwable e
(catch #?(:clj Throwable :cljs js/Object) e
{::data/error true
:token (get-in (ex-data e) [:ast :token])
:line (get-in (ex-data e) [:ast :token :line])