mirror of
https://github.com/penpot/penpot.git
synced 2026-07-22 00:31:32 +02:00
6031f7544d
The new sub-test "content-affecting mod-obj on a broken text shape still throws" asserted a thrown exception unconditionally. In ClojureScript the `process-changes` validation branch is deliberately empty (see `changes.cljc:622` and its comment "we only perform hard validation on backend"), so the assertion passes on JVM but fails on CLJS. The fix wraps the throw-assertion in `#?(:clj ...)` so it only runs on Clojure, and uses plain `Exception` since the reader-conditional is no longer needed. Refs #10725. AI-assisted-by: opencode-go/minimax-m3