File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 1507
1507
~@body))))
1508
1508
1509
1509
(core/defn- add-obj-methods [type type-sym sigs]
1510
- (map (core/fn [[f & meths :as form]]
1511
- (core/let [[f meths] (if (vector? (first meths))
1512
- [f [(rest form)]]
1513
- [f meths])]
1514
- `(set! ~(extend-prefix type-sym f)
1515
- ~(with-meta `(fn ~@(map #(adapt-obj-params type %) meths)) (meta form)))))
1516
- sigs))
1510
+ (->> sigs
1511
+ ; ; Elide all toString methods in :lite-mode
1512
+ (remove
1513
+ (core/fn [[f]]
1514
+ (and (comp/lite-mode? ) (= 'toString f))))
1515
+ (map
1516
+ (core/fn [[f & meths :as form]]
1517
+ (core/let [[f meths] (if (vector? (first meths))
1518
+ [f [(rest form)]]
1519
+ [f meths])]
1520
+ `(set! ~(extend-prefix type-sym f)
1521
+ ~(with-meta `(fn ~@(map #(adapt-obj-params type %) meths)) (meta form))))))))
1517
1522
1518
1523
(core/defn- ifn-invoke-methods [type type-sym [f & meths :as form]]
1519
1524
(map
You can’t perform that action at this time.
0 commit comments