@@ -8839,11 +8839,15 @@ reduces them without incurring seq initialization"
8839
8839
(-pr-writer obj writer opts)
8840
8840
8841
8841
:else
8842
- (let [name (.. obj -constructor -name)
8843
- name (if (or (nil? name) (gstring/isEmpty name))
8844
- " Object"
8845
- name)]
8846
- (write-all writer " #object[" name " " (str obj) " ]" ))))))
8842
+ (if (.. obj -constructor -cljs$lang$ctorStr)
8843
+ (write-all writer
8844
+ " #object[" (.replace (.. obj -constructor -cljs$lang$ctorStr)
8845
+ (js/RegExp. " /" " g" ) " ." ) " ]" )
8846
+ (let [name (.. obj -constructor -name)
8847
+ name (if (or (nil? name) (gstring/isEmpty name))
8848
+ " Object"
8849
+ name)]
8850
+ (write-all writer " #object[" name " " (str obj) " ]" )))))))
8847
8851
8848
8852
(defn- pr-writer
8849
8853
" Prefer this to pr-seq, because it makes the printing function
@@ -9050,15 +9054,15 @@ reduces them without incurring seq initialization"
9050
9054
9051
9055
Atom
9052
9056
(-pr-writer [a writer opts]
9053
- (-write writer " #< Atom: " )
9054
- (pr-writer (.-state a) writer opts)
9055
- (-write writer " > " ))
9057
+ (-write writer " #object [cljs.core. Atom " )
9058
+ (pr-writer { :val (.-state a)} writer opts)
9059
+ (-write writer " ] " ))
9056
9060
9057
9061
Volatile
9058
9062
(-pr-writer [a writer opts]
9059
- (-write writer " #< Volatile: " )
9060
- (pr-writer (.-state a) writer opts)
9061
- (-write writer " > " ))
9063
+ (-write writer " #object [cljs.core. Volatile " )
9064
+ (pr-writer { :val (.-state a)} writer opts)
9065
+ (-write writer " ] " ))
9062
9066
9063
9067
Var
9064
9068
(-pr-writer [a writer opts]
0 commit comments