Files
Andrey Antukh 6031f7544d 🐛 Restrict broken-text validation test to JVM only
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
2026-07-20 09:44:00 +02:00
..