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])