From b12b49c19726b6d0733ebe98a28f533ddabb00a4 Mon Sep 17 00:00:00 2001 From: Scott Richmond Date: Mon, 18 Dec 2023 00:22:42 -0500 Subject: [PATCH] Fix cljs/clj bug --- src/ludus/interpreter.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ludus/interpreter.cljc b/src/ludus/interpreter.cljc index 6c45a75..7d8fa28 100644 --- a/src/ludus/interpreter.cljc +++ b/src/ludus/interpreter.cljc @@ -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])