Skip to content

Commit aa9fd3d

Browse files
author
dnolen
committed
basic working instrument
1 parent f9ffbee commit aa9fd3d

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/main/cljs/cljs/spec/test.cljc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,11 @@ Returns a collection of syms naming the vars instrumented."
106106
(cond-> ret# sym# (conj sym#))))
107107
[]
108108
(->> (zipmap
109-
(collectionize ~sym-or-syms)
110-
~(into []
111-
(map
109+
(collectionize '~sym-or-syms)
110+
[~@(map
112111
(fn [sym]
113-
`(fn [] (instrument-1 '~sym ~opts-sym))))
114-
(collectionize sym-or-syms)))
112+
`(fn [] (instrument-1 '~sym ~opts-sym)))
113+
(collectionize sym-or-syms))])
115114
(filter #((instrumentable-syms ~opts-sym) (first %)))
116115
(distinct-by first)))))))
117116

0 commit comments

Comments
 (0)